Skip to content

Commit c7b96e9

Browse files
committed
Update TabPreview.vue
1 parent 4663f72 commit c7b96e9

1 file changed

Lines changed: 26 additions & 18 deletions

File tree

app/components/TabPreview.vue

Lines changed: 26 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -225,12 +225,12 @@
225225
</div>
226226
</ControlRow>
227227

228-
<ControlRow>
228+
<div class="flex w-full flex-col items-center justify-center gap-4 p-4 lg:flex-row lg:items-end">
229229
<div class="flex w-full flex-col space-y-1 lg:w-auto">
230230
<Label class="flex items-center space-x-2">
231231
<div>Border Radius</div>
232232

233-
<span class="text-xs text-zinc-400 dark:text-zinc-500">
233+
<span class="whitespace-nowrap text-xs tabular-nums text-zinc-400 dark:text-zinc-500">
234234
({{ localSettings.borderRadius }} px)
235235
</span>
236236
</Label>
@@ -328,41 +328,49 @@
328328
<Label class="flex items-center space-x-2">
329329
<div>Opacity</div>
330330

331-
<span class="text-xs text-zinc-400 dark:text-zinc-500">
331+
<span class="whitespace-nowrap text-xs tabular-nums text-zinc-400 dark:text-zinc-500">
332332
({{ Math.round(localSettings.themeOpacity * 100) }}%)
333333
</span>
334334
</Label>
335335

336-
<Slider
337-
:max="1"
338-
:step="0.01"
339-
:model-value="[localSettings.themeOpacity]"
340-
@update:model-value="localSettings.themeOpacity = $event[0]"
341-
/>
336+
<div class="flex items-center gap-1">
337+
<Slider
338+
:max="1"
339+
:step="0.01"
340+
:model-value="[localSettings.themeOpacity]"
341+
@update:model-value="localSettings.themeOpacity = $event[0]"
342+
/>
343+
344+
<div class="size-6 shrink-0" />
345+
</div>
342346
</div>
343347

344348
<div class="flex w-full flex-col space-y-1 lg:w-auto">
345349
<Label class="flex items-center space-x-2">
346350
<div>Scale</div>
347351

348-
<span class="text-xs text-zinc-400 dark:text-zinc-500">
352+
<span class="whitespace-nowrap text-xs tabular-nums text-zinc-400 dark:text-zinc-500">
349353
({{ Math.round(localSettings.scale * 100) }}%)
350354
</span>
351355
</Label>
352356

353-
<Slider
354-
:max="4"
355-
:step="0.01"
356-
:model-value="[localSettings.scale]"
357-
@update:model-value="localSettings.scale = $event[0]"
358-
/>
357+
<div class="flex items-center gap-1">
358+
<Slider
359+
:max="4"
360+
:step="0.01"
361+
:model-value="[localSettings.scale]"
362+
@update:model-value="localSettings.scale = $event[0]"
363+
/>
364+
365+
<div class="size-6 shrink-0" />
366+
</div>
359367
</div>
360368

361369
<div class="flex w-full flex-col space-y-1 lg:w-auto">
362370
<Label class="flex items-center space-x-2">
363371
<div>Window Padding</div>
364372

365-
<span class="text-xs text-zinc-400 dark:text-zinc-500">
373+
<span class="whitespace-nowrap text-xs tabular-nums text-zinc-400 dark:text-zinc-500">
366374
({{ localSettings.padding }} px)
367375
</span>
368376
</Label>
@@ -411,7 +419,7 @@
411419
</PopoverSettings>
412420
</div>
413421
</div>
414-
</ControlRow>
422+
</div>
415423
</div>
416424
</template>
417425

0 commit comments

Comments
 (0)