Fix occasional scrollbars

Summary:
Sometimes after a while scroll bars woudl start to appear in the text areas like so
{F1150744703}

Its hard to repro but seemed to be after flipper was open for a long period. Playing with chrome dev tools setting overflow: hidden makes the problem go away

changelog: UIDebugger fix issue with scrollbars sometimes appearing in sidebar

Reviewed By: antonk52

Differential Revision: D51346366

fbshipit-source-id: 2d9218ac582164c9726a92c3c0c99567382f8929
This commit is contained in:
Luke De Feo
2023-11-15 05:09:56 -08:00
committed by Facebook GitHub Bot
parent bfc4e959bc
commit 39d84e3bfc

View File

@@ -315,6 +315,7 @@ function NamedAttribute({
* disables hover and focsued states * disables hover and focsued states
*/ */
const readOnlyInput = css` const readOnlyInput = css`
overflow: hidden; //stop random scrollbars from showing up
font-size: small; font-size: small;
:hover { :hover {
border-color: ${theme.disabledColor} !important; border-color: ${theme.disabledColor} !important;
@@ -388,7 +389,7 @@ function StyledTextArea({
return ( return (
<Input.TextArea <Input.TextArea
autoSize autoSize
className={!mutable ? readOnlyInput : ''} className={cx(!mutable && readOnlyInput)}
bordered bordered
style={{color: color}} style={{color: color}}
readOnly={!mutable} readOnly={!mutable}