Skip to content
This repository was archived by the owner on May 12, 2026. It is now read-only.

Commit 8a3983f

Browse files
committed
Fix header dropdown wrapping at zoom
1 parent 6a3002d commit 8a3983f

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

src/cloud/components/Editor/EditorHeaderToolDropdown.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,15 @@ export default EditorHeaderToolDropdown
105105
const StyledMenuItem = styled.div`
106106
display: flex;
107107
align-items: center;
108-
justify-content: center;
108+
justify-content: flex-start;
109+
width: 100%;
110+
white-space: nowrap;
109111
`
110112

111113
const StyledIcon = styled.div`
112114
display: flex;
113115
align-items: center;
116+
flex: 0 0 auto;
114117
padding-right: ${({ theme }) => theme.sizes.spaces.sm}px;
115118
font-size: 21px;
116119
`

src/cloud/components/Editor/styled.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,10 @@ export const StyledEditorToolDropdownContainer = styled.div`
4747
z-index: 9000;
4848
position: absolute;
4949
padding: ${({ theme }) => theme.sizes.spaces.xsm}px 0;
50-
width: 110px;
50+
width: 132px;
5151
height: auto;
5252
min-width: 100%;
53+
box-sizing: border-box;
5354
border-style: solid;
5455
border-width: 1px;
5556
border-radius: 4px;

0 commit comments

Comments
 (0)