feat(Layout): add tooltip provider

This commit is contained in:
Ilia Mashkov
2026-01-24 15:32:01 +03:00
parent 18a311c6b1
commit e89c6369cb

View File

@@ -14,12 +14,16 @@
* throughout the application.
*/
import favicon from '$shared/assets/favicon.svg';
import * as Sidebar from '$shared/shadcn/ui/sidebar/index';
import { FiltersSidebar } from '$widgets/FiltersSidebar';
import TypographyMenu from '$widgets/TypographySettings/ui/TypographyMenu.svelte';
import { Provider as TooltipProvider } from '$shared/shadcn/ui/tooltip';
import { TypographyMenu } from '$widgets/TypographySettings';
import type { Snippet } from 'svelte';
interface Props {
children: Snippet;
}
/** Slot content for route pages to render */
let { children } = $props();
let { children }: Props = $props();
</script>
<svelte:head>
@@ -35,22 +39,14 @@ let { children } = $props();
>
</svelte:head>
<div id="app-root">
<div id="app-root" class="min-h-screen flex flex-col bg-background">
<header></header>
<Sidebar.Provider>
<FiltersSidebar />
<main class="w-dvw">
<main class="flex-1 w-full max-w-5xl mx-auto px-4 py-6 md:px-8 lg:py-10">
<TooltipProvider>
<TypographyMenu />
{@render children?.()}
</main>
</Sidebar.Provider>
</TooltipProvider>
</main>
<footer></footer>
</div>
<style>
#app-root {
width: 100%;
height: 100vh;
}
</style>