Skip to content

Commit cad8696

Browse files
committed
clean up css
1 parent 878d34c commit cad8696

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

packages/compass-aggregations/src/components/stage-toolbar/stage-operator-select.tsx

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,32 +17,31 @@ import { filterStageOperators } from '../../utils/stage';
1717
import { isAtlasOnly } from '../../utils/stage';
1818
import type { ServerEnvironment } from '../../modules/env';
1919

20-
const inputWidth = spacing[7] * 2;
20+
const inputWidth = spacing[1400] * 3;
21+
const inputHeight = spacing[600] - 2; // match other xs controls
22+
// width of options popover
23+
const comboxboxOptionsWidth = spacing[1200] * 10;
24+
// left position of options popover wrt input. this aligns it with the start of input
25+
const comboboxOptionsLeft = (comboxboxOptionsWidth - inputWidth) / 2;
2126

22-
const inputHeight = spacing[4] - 2; // match other xs controls
2327
const comboboxStyles = css({
2428
width: inputWidth,
2529
'& [role="combobox"]': {
2630
padding: 0,
27-
paddingLeft: spacing[1],
31+
paddingLeft: spacing[100],
2832
height: inputHeight,
2933
'& > div': {
3034
minHeight: inputHeight,
3135
},
3236
},
3337
});
3438

35-
// width of options popover
36-
const comboxboxOptionsWidth = 500;
37-
// left position of options popover wrt input. this aligns it with the start of input
38-
const comboboxOptionsLeft = (comboxboxOptionsWidth - inputWidth) / 2;
3939
const comboboxPortalStyles = css({
4040
position: 'fixed',
4141
top: 0,
4242
// -4px to count for the input focus outline.
4343
left: `${comboboxOptionsLeft - 4}px`,
4444
zIndex: 1,
45-
width: '400px',
4645
'> div': {
4746
width: comboxboxOptionsWidth,
4847
whiteSpace: 'normal',

0 commit comments

Comments
 (0)