Skip to content

Commit 2f15c21

Browse files
authored
fix: flex dropdown items height consistency (#4488)
## Description When I migrated to 24px inputs height, I forgot this one. ## Steps for reproduction 1. click button 2. expect xyz ## Code Review - [ ] hi @kof, I need you to do - conceptual review (architecture, feature-correctness) - detailed review (read every line) - test it on preview ## Before requesting a review - [ ] made a self-review - [ ] added inline comments where things may be not obvious (the "why", not "what") ## Before merging - [ ] tested locally and on preview environment (preview dev login: 0000) - [ ] updated [test cases](https://github.com/webstudio-is/webstudio/blob/main/apps/builder/docs/test-cases.md) document - [ ] added tests - [ ] if any new env variables are added, added them to `.env` file
1 parent a66a674 commit 2f15c21

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

apps/builder/app/builder/features/style-panel/controls/menu/menu-control.tsx

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -102,17 +102,19 @@ export const MenuControl = ({
102102
setDescriptionValue(undefined);
103103
}}
104104
>
105-
<Flex
106-
css={{
107-
width: theme.spacing[11],
108-
height: theme.spacing[11],
109-
}}
110-
align="center"
111-
justify="center"
112-
>
113-
<Icon />
105+
<Flex gap="1">
106+
<Flex
107+
css={{
108+
width: theme.spacing[9],
109+
height: theme.spacing[9],
110+
}}
111+
align="center"
112+
justify="center"
113+
>
114+
<Icon />
115+
</Flex>
116+
{label}
114117
</Flex>
115-
{label}
116118
</DropdownMenuRadioItem>
117119
);
118120
})}

0 commit comments

Comments
 (0)