From 204aa75959365c93725a9beeb8ef495e1f7f5a33 Mon Sep 17 00:00:00 2001 From: Ilia Mashkov Date: Sat, 7 Feb 2026 18:39:52 +0300 Subject: [PATCH] feat(SampleList): move TypographyMenu to SampleList to show/hide it when list is visible on a screen --- src/app/ui/Layout.svelte | 2 - .../ui/SampleList/SampleList.svelte | 66 ++++++++++++++----- 2 files changed, 48 insertions(+), 20 deletions(-) diff --git a/src/app/ui/Layout.svelte b/src/app/ui/Layout.svelte index 80f86f3..cf7a452 100644 --- a/src/app/ui/Layout.svelte +++ b/src/app/ui/Layout.svelte @@ -11,7 +11,6 @@ * - Footer area (currently empty, reserved for future use) */ import { BreadcrumbHeader } from '$entities/Breadcrumb'; -import { TypographyMenu } from '$features/SetupFont'; import favicon from '$shared/assets/favicon.svg'; import { ResponsiveProvider } from '$shared/lib'; import { ScrollArea } from '$shared/shadcn/ui/scroll-area'; @@ -52,7 +51,6 @@ let { children }: Props = $props();
- {@render children?.()}
diff --git a/src/widgets/SampleList/ui/SampleList/SampleList.svelte b/src/widgets/SampleList/ui/SampleList/SampleList.svelte index 4f609dd..6f0c525 100644 --- a/src/widgets/SampleList/ui/SampleList/SampleList.svelte +++ b/src/widgets/SampleList/ui/SampleList/SampleList.svelte @@ -1,7 +1,8 @@ - - {#snippet children({ + + +
+ + {#snippet children({ item: font, isFullyVisible, isPartiallyVisible, proximity, index, })} - - - - {/snippet} - + + + + {/snippet} + + + {#if isAboveMiddle} + + {/if} +