diff --git a/src/entities/Font/ui/FontVirtualList/FontVirtualList.svelte b/src/entities/Font/ui/FontVirtualList/FontVirtualList.svelte
index ede09df..b26a909 100644
--- a/src/entities/Font/ui/FontVirtualList/FontVirtualList.svelte
+++ b/src/entities/Font/ui/FontVirtualList/FontVirtualList.svelte
@@ -3,25 +3,35 @@
- Renders a virtualized list of fonts
- Handles font registration with the manager
-->
-
{#snippet fontSelector(
name: string,
id: string,
+ url: string,
fonts: UnifiedFont[],
selectFont: (font: UnifiedFont) => void,
align: 'start' | 'end',
)}
-
e.stopPropagation())}>
+
e.stopPropagation())}
+ >
-
+
{name}
@@ -80,12 +82,12 @@ function selectFontB(font: UnifiedFont) {
'w-52 max-h-[280px] overflow-hidden rounded-lg',
)}
side="top"
- align={align}
+ {align}
sideOffset={8}
size="small"
>
-
+
{#snippet children({ item: font })}
{@const handleClick = () => selectFont(font)}
-
+
{font.name}
@@ -118,7 +120,14 @@ function selectFontB(font: UnifiedFont) {
ch_01
- {@render fontSelector(fontB.name, fontB.id, fontList, selectFontB, 'start')}
+ {@render fontSelector(
+ fontB.name,
+ fontB.id,
+ fontB.styles.regular!,
+ fontList,
+ selectFontB,
+ 'start',
+)}
- {@render fontSelector(fontA.name, fontA.id, fontList, selectFontA, 'end')}
+ {@render fontSelector(
+ fontA.name,
+ fontA.id,
+ fontA.styles.regular!,
+ fontList,
+ selectFontA,
+ 'end',
+)}