fix: move Item component from feature to Widget for FontMenu may be used in different places of the app
Some checks failed
Lint / Lint Code (push) Failing after 7m9s
Test / Svelte Checks (push) Failing after 7m12s
Build / build (pull_request) Failing after 7m14s
Lint / Lint Code (pull_request) Failing after 7m20s
Test / Svelte Checks (pull_request) Failing after 7m14s

This commit is contained in:
Ilia Mashkov
2026-01-06 12:23:50 +03:00
parent 943e6e77d3
commit aa087c5c3e
2 changed files with 45 additions and 47 deletions

View File

@@ -12,9 +12,7 @@ const fontWeight = $derived($fontWeightStore);
const lineHeight = $derived($lineHeightStore);
</script>
<div class="w-full p-2">
<Item.Root variant="outline" class="w-full p-2.5">
<Item.Content class="flex flex-row items-center">
<div class="w-full p-2 flex flex-row items-center">
<Sidebar.Trigger />
<Separator orientation="vertical" class="h-full" />
<ComboControl
@@ -54,6 +52,4 @@ const lineHeight = $derived($lineHeightStore);
increaseLabel="Increase Line Height"
decreaseLabel="Decrease Line Height"
/>
</Item.Content>
</Item.Root>
</div>

View File

@@ -1,10 +1,12 @@
<script lang="ts">
import SetupFontMenu from '$features/SetupFont/ui/SetupFontMenu.svelte';
import * as Item from '$shared/shadcn/ui/item';
import { Separator } from '$shared/shadcn/ui/separator/index';
import * as Sidebar from '$shared/shadcn/ui/sidebar/index';
</script>
<div class="w-full p-2">
<Item.Root variant="outline" class="w-full p-2.5">
<Item.Content>
<SetupFontMenu />
</Item.Content>
</Item.Root>
</div>