@@ -189,10 +189,7 @@ export function BrowserDeviceToolbar({
189189 < SelectTrigger
190190 variant = "ghost"
191191 size = "xs"
192- className = { cn (
193- "shrink-0 justify-between px-1.5 font-medium" ,
194- width >= 440 ? "w-36" : "w-24" ,
195- ) }
192+ className = { cn ( "shrink-0 justify-between" , width >= 440 ? "w-36" : "w-24" ) }
196193 aria-label = "Browser device preset"
197194 >
198195 < SelectValue />
@@ -227,7 +224,8 @@ export function BrowserDeviceToolbar({
227224 nativeInput
228225 type = "number"
229226 inputMode = "numeric"
230- size = "sm"
227+ size = "compact"
228+ font = "mono"
231229 min = { PREVIEW_VIEWPORT_MIN_DIMENSION }
232230 max = { PREVIEW_VIEWPORT_MAX_DIMENSION }
233231 value = { presentedSize . width }
@@ -245,16 +243,17 @@ export function BrowserDeviceToolbar({
245243 aria-label = "Viewport width"
246244 aria-invalid = { ! customValid }
247245 className = { cn (
248- "h-6 rounded-md text-center tabular-nums [&_[data-slot=input]]:h-full [&_[data-slot=input]]:px-1 [&_[data-slot=input]]:text-xs [&_[data-slot=input]]:leading-none [&_[data-slot=input]::-webkit-inner-spin-button]:appearance-none [&_[data-slot=input]]:[appearance:textfield]" ,
249- width >= 360 ? "w-14" : "w-11 " ,
246+ "text-center [&_[data-slot=input]::-webkit-inner-spin-button]:appearance-none [&_[data-slot=input]]:[appearance:textfield]" ,
247+ width >= 360 ? "w-14" : "w-13 " ,
250248 ) }
251249 />
252250 < span className = "text-xs text-muted-foreground" > ×</ span >
253251 < Input
254252 nativeInput
255253 type = "number"
256254 inputMode = "numeric"
257- size = "sm"
255+ size = "compact"
256+ font = "mono"
258257 min = { PREVIEW_VIEWPORT_MIN_DIMENSION }
259258 max = { PREVIEW_VIEWPORT_MAX_DIMENSION }
260259 value = { presentedSize . height }
@@ -272,8 +271,8 @@ export function BrowserDeviceToolbar({
272271 aria-label = "Viewport height"
273272 aria-invalid = { ! customValid }
274273 className = { cn (
275- "h-6 rounded-md text-center tabular-nums [&_[data-slot=input]]:h-full [&_[data-slot=input]]:px-1 [&_[data-slot=input]]:text-xs [&_[data-slot=input]]:leading-none [&_[data-slot=input]::-webkit-inner-spin-button]:appearance-none [&_[data-slot=input]]:[appearance:textfield]" ,
276- width >= 360 ? "w-14" : "w-11 " ,
274+ "text-center [&_[data-slot=input]::-webkit-inner-spin-button]:appearance-none [&_[data-slot=input]]:[appearance:textfield]" ,
275+ width >= 360 ? "w-14" : "w-13 " ,
277276 ) }
278277 />
279278 </ form >
0 commit comments