feat(ComparisonSlider): slightly tweak styles

This commit is contained in:
Ilia Mashkov
2026-02-18 16:59:31 +03:00
parent 5dae5fb7ea
commit ee0749e828

View File

@@ -4,7 +4,6 @@
Simplified version for static positioning in settings mode. Simplified version for static positioning in settings mode.
--> -->
<script lang="ts"> <script lang="ts">
import { cn } from '$shared/shadcn/utils/shadcn-utils';
import { import {
ComboControlV2, ComboControlV2,
Input, Input,
@@ -20,30 +19,35 @@ const typography = $derived(comparisonStore.typography);
size="sm" size="sm"
label="Text" label="Text"
placeholder="The quick brown fox..." placeholder="The quick brown fox..."
class="w-full px-3 py-2 h-10 rounded-lg border border-border-muted bg-background-60 backdrop-blur-sm mr-4" class="w-full h-10 px-3 py-2 sm:mr-4 mb-8 sm:mb-4 rounded-lg border border-border-muted bg-background-60 backdrop-blur-sm"
/> />
<!-- Typography controls --> <!-- Typography controls -->
{#if typography.weightControl && typography.sizeControl && typography.heightControl} {#if typography.weightControl && typography.sizeControl && typography.heightControl}
<div class="flex flex-col gap-1.5 mt-1.5"> <div class="flex flex-col mt-1.5">
<ComboControlV2 <ComboControlV2
control={typography.weightControl} control={typography.weightControl}
orientation="horizontal" orientation="horizontal"
class="sm:py-0" class="sm:py-0 sm:px-0 mb-5 sm:mb-1.5"
label="font weight"
showScale={false} showScale={false}
reduced reduced
/> />
<ComboControlV2 <ComboControlV2
control={typography.sizeControl} control={typography.sizeControl}
orientation="horizontal" orientation="horizontal"
class="sm:py-0" class="sm:py-0 sm:px-0 mb-5 sm:mb-1.5"
label="font size"
showScale={false} showScale={false}
reduced reduced
/> />
<ComboControlV2 <ComboControlV2
control={typography.heightControl} control={typography.heightControl}
orientation="horizontal" orientation="horizontal"
class="sm:py-0" class="sm:py-0 sm:px-0"
label="line height"
showScale={false} showScale={false}
reduced reduced
/> />