Skip to content

Commit 8169c0d

Browse files
committed
fix(ComboBox): popover size
1 parent 1cd7ece commit 8169c0d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/components/fields/ComboBox/ComboBox.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ const ComboBoxOverlayElement = tasty({
7575
styles: {
7676
display: 'grid',
7777
gridRows: '1sf',
78-
width: '30x max-content 50vw',
78+
gridColumns: '1sf',
79+
width: '$min-width max-content 50vw',
7980
height: 'initial max-content (50vh - $size)',
8081
overflow: 'auto',
8182
background: '#white',
@@ -105,6 +106,8 @@ const ComboBoxOverlayElement = tasty({
105106
'': 1,
106107
'!open': 0.001,
107108
},
109+
110+
'$min-width': 'min 30x',
108111
},
109112
});
110113

@@ -896,7 +899,7 @@ function ComboBoxOverlay({
896899
}}
897900
styles={overlayStyles}
898901
style={{
899-
minWidth: comboBoxWidth ? `${comboBoxWidth}px` : undefined,
902+
'--min-width': comboBoxWidth ? `${comboBoxWidth}px` : undefined,
900903
...overlayPositionProps.style,
901904
}}
902905
>

0 commit comments

Comments
 (0)