From 8af6ca7f02bf340ff0e6b940bb131092408be0de Mon Sep 17 00:00:00 2001 From: Luke De Feo Date: Thu, 26 Oct 2023 05:24:30 -0700 Subject: [PATCH] Shrink input size (final ) Summary: Allows more content on screen. Final diff of stack Changelog: UIDebugger, new sidebar design Reviewed By: lblasa Differential Revision: D50595987 fbshipit-source-id: 436af4191dba37f7a0f41dca23ab6349856358cd --- .../sidebarV2/AttributesInspector.tsx | 25 +++++++++++++++---- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/desktop/plugins/public/ui-debugger/components/sidebarV2/AttributesInspector.tsx b/desktop/plugins/public/ui-debugger/components/sidebarV2/AttributesInspector.tsx index 8e22e890e..a48b110c6 100644 --- a/desktop/plugins/public/ui-debugger/components/sidebarV2/AttributesInspector.tsx +++ b/desktop/plugins/public/ui-debugger/components/sidebarV2/AttributesInspector.tsx @@ -271,11 +271,12 @@ function NamedAttribute({ {name} @@ -297,6 +298,7 @@ function NamedAttribute({ * disables hover and focsued states */ const readOnlyInput = css` + font-size: small; :hover { border-color: ${theme.disabledColor} !important; } @@ -501,16 +503,27 @@ function AttributeValue({ case 'object': return ( @@ -519,6 +532,8 @@ function AttributeValue({ return null; } +const rowHeight = 26; + function ColorInspector({inspectable}: {inspectable: InspectableColor}) { return ( @@ -545,8 +560,8 @@ function ColorInspector({inspectable}: {inspectable: InspectableColor}) { } const ColorPreview = styled.div(({background}: {background: string}) => ({ - width: '28px', - height: '28px', + width: rowHeight, + height: rowHeight, borderRadius: '8px', borderColor: theme.disabledColor, borderStyle: 'solid',