@@ -5,6 +5,8 @@ import { validateApiConfiguration, validateModelId } from "../../utils/validate"
55import { vscode } from "../../utils/vscode"
66import ApiOptions from "./ApiOptions"
77import ApiConfigManager from "./ApiConfigManager"
8+ import { Dropdown } from "vscrui"
9+ import type { DropdownOption } from "vscrui"
810
911type SettingsViewProps = {
1012 onDone : ( ) => void
@@ -444,23 +446,21 @@ const SettingsView = ({ onDone }: SettingsViewProps) => {
444446 < h3 style = { { color : "var(--vscode-foreground)" , margin : "0 0 15px 0" } } > Browser Settings</ h3 >
445447 < div style = { { marginBottom : 15 } } >
446448 < label style = { { fontWeight : "500" , display : "block" , marginBottom : 5 } } > Viewport size</ label >
447- < select
448- value = { browserViewportSize }
449- onChange = { ( e ) => setBrowserViewportSize ( e . target . value ) }
450- style = { {
451- width : "100%" ,
452- padding : "4px 8px" ,
453- backgroundColor : "var(--vscode-input-background)" ,
454- color : "var(--vscode-input-foreground)" ,
455- border : "1px solid var(--vscode-input-border)" ,
456- borderRadius : "2px" ,
457- height : "28px" ,
458- } } >
459- < option value = "1280x800" > Large Desktop (1280x800)</ option >
460- < option value = "900x600" > Small Desktop (900x600)</ option >
461- < option value = "768x1024" > Tablet (768x1024)</ option >
462- < option value = "360x640" > Mobile (360x640)</ option >
463- </ select >
449+ < div className = "dropdown-container" >
450+ < Dropdown
451+ value = { browserViewportSize }
452+ onChange = { ( value : unknown ) => {
453+ setBrowserViewportSize ( ( value as DropdownOption ) . value )
454+ } }
455+ style = { { width : "100%" } }
456+ options = { [
457+ { value : "1280x800" , label : "Large Desktop (1280x800)" } ,
458+ { value : "900x600" , label : "Small Desktop (900x600)" } ,
459+ { value : "768x1024" , label : "Tablet (768x1024)" } ,
460+ { value : "360x640" , label : "Mobile (360x640)" } ,
461+ ] }
462+ />
463+ </ div >
464464 < p
465465 style = { {
466466 fontSize : "12px" ,
0 commit comments