From 12718593e34cefae90a6a40956e30db73c447a0d Mon Sep 17 00:00:00 2001 From: Ilia Mashkov Date: Fri, 27 Feb 2026 12:42:18 +0300 Subject: [PATCH] feat(FontSampler): refactor component to align it with new design --- .../ui/FontSampler/FontSampler.svelte | 161 +++++++++++------- 1 file changed, 102 insertions(+), 59 deletions(-) diff --git a/src/features/DisplayFont/ui/FontSampler/FontSampler.svelte b/src/features/DisplayFont/ui/FontSampler/FontSampler.svelte index 0e43da1..92daa6d 100644 --- a/src/features/DisplayFont/ui/FontSampler/FontSampler.svelte +++ b/src/features/DisplayFont/ui/FontSampler/FontSampler.svelte @@ -1,6 +1,7 @@
-
-
- - typeface_{String(index).padStart(3, '0')} - -
-
+ +
+ +
+ + {String(index + 1).padStart(2, '0')} + + +
+ + {font.name} -
+ + + {#if fontType} + + {/if}
- + +
-
+ +
-
- - SZ:{fontSize}PX - - - - WGT:{fontWeight} - - - - LH:{lineHeight?.toFixed(2)} - - - - LTR:{letterSpacing} - + +
+ {#each stats as stat, i} + + {stat.label}:{stat.value} + + {#if i < stats.length - 1} + + {/if} + {/each} +
+ + +