From 5946f66e697129674dc3af4d6989742c8b138a9f Mon Sep 17 00:00:00 2001 From: Ilia Mashkov Date: Fri, 27 Feb 2026 18:42:20 +0300 Subject: [PATCH] chore(FontSamler): rewrite component to use existed shared ui label wrappers --- .../ui/FontSampler/FontSampler.svelte | 67 ++++++++++--------- 1 file changed, 35 insertions(+), 32 deletions(-) diff --git a/src/features/DisplayFont/ui/FontSampler/FontSampler.svelte b/src/features/DisplayFont/ui/FontSampler/FontSampler.svelte index 92daa6d..5d891c0 100644 --- a/src/features/DisplayFont/ui/FontSampler/FontSampler.svelte +++ b/src/features/DisplayFont/ui/FontSampler/FontSampler.svelte @@ -10,8 +10,12 @@ import { } from '$entities/Font'; import { controlManager } from '$features/SetupFont'; import { + Badge, ContentEditable, + Divider, Footnote, + Stat, + StatGroup, } from '$shared/ui'; import { fly } from 'svelte/transition'; @@ -46,10 +50,12 @@ const stats = $derived([ in:fly={{ y: 20, duration: 400, delay: index * 50 }} class=" group relative + w-full h-full bg-paper dark:bg-dark-card border border-black/5 dark:border-white/10 hover:border-brand dark:hover:border-brand - hover:shadow-[5px_5px_0px_0px_theme('colors.brand')] + hover:shadow-brand/10 + hover:shadow-[5px_5px_0px_0px] transition-all duration-200 overflow-hidden flex flex-col @@ -68,12 +74,11 @@ const stats = $derived([ " > -
+
{String(index + 1).padStart(2, '0')} - -
+ {#if fontType} - + {/if}
- @@ -143,10 +145,11 @@ const stats = $derived([