Skip to content

Commit 50e0ea6

Browse files
committed
fix: ensure grid item width large enough for title bar text and button
1 parent 2a98550 commit 50e0ea6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

electron/renderer/components/grid/grid-item.tsx

+5
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,11 @@ export const GridItem: React.FC<GridItemProps> = forwardRef<
153153
style={style}
154154
className={className}
155155
{...otherProps}
156+
css={{
157+
// Prevent shrinking smaller than the title bar
158+
// so that the title and close button are always visible.
159+
minWidth: 'min-content',
160+
}}
156161
>
157162
<EuiSplitPanel.Inner grow={false} color="subdued" paddingSize="none">
158163
<EuiFlexGroup

0 commit comments

Comments
 (0)