File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed
packages/compass-aggregations/src/components/stage-toolbar Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -17,32 +17,31 @@ import { filterStageOperators } from '../../utils/stage';
1717import { isAtlasOnly } from '../../utils/stage' ;
1818import 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
2327const 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 ;
3939const 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' ,
You can’t perform that action at this time.
0 commit comments