@@ -120,16 +120,24 @@ function createIndexPickerFactory(): ViewFactory {
120120 return ( container : HTMLElement ) : AttributeHandler => {
121121 container . style . display = 'flex' ;
122122 container . style . alignItems = 'center' ;
123- container . style . justifyContent = 'center ' ;
123+ container . style . justifyContent = 'stretch ' ;
124124 container . style . pointerEvents = 'auto' ;
125+ // Explicit height prevents WebValdiCustomView from applying the 80px default min-height.
126+ container . style . height = '32px' ;
127+ container . style . minHeight = '0' ;
125128
126129 const select = document . createElement ( 'select' ) ;
127- select . style . fontSize = '16px' ;
128- select . style . padding = '8px' ;
130+ select . style . fontFamily = '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif' ;
131+ select . style . fontSize = '13px' ;
132+ select . style . padding = '4px 8px' ;
129133 select . style . border = '1px solid #ccc' ;
130134 select . style . borderRadius = '6px' ;
131135 select . style . cursor = 'pointer' ;
132- select . style . minWidth = '120px' ;
136+ select . style . minWidth = '0' ;
137+ select . style . width = '100%' ;
138+ select . style . height = '100%' ;
139+ select . style . maxWidth = '100%' ;
140+ select . style . boxSizing = 'border-box' ;
133141 select . style . pointerEvents = 'auto' ;
134142 container . appendChild ( select ) ;
135143
0 commit comments