diff --git a/src/app/ui/Layout.svelte b/src/app/ui/Layout.svelte index 2702d0a..af3a0a5 100644 --- a/src/app/ui/Layout.svelte +++ b/src/app/ui/Layout.svelte @@ -3,17 +3,15 @@ * Layout Component * * Root layout wrapper that provides the application shell structure. Handles favicon, - * sidebar provider initialization, and renders child routes with consistent structure. + * toolbar provider initialization, and renders child routes with consistent structure. * * Layout structure: * - Header area (currently empty, reserved for future use) - * - Collapsible sidebar with main content area - * - Footer area (currently empty, reserved for future use) * - * Uses Sidebar.Provider to enable mobile-responsive collapsible sidebar behavior - * throughout the application. + * - Footer area (currently empty, reserved for future use) */ import favicon from '$shared/assets/favicon.svg'; +import { ScrollArea } from '$shared/shadcn/ui/scroll-area'; import { Provider as TooltipProvider } from '$shared/shadcn/ui/tooltip'; import { TypographyMenu } from '$widgets/TypographySettings'; import type { Snippet } from 'svelte'; @@ -42,11 +40,13 @@ let { children }: Props = $props();
-
- - - {@render children?.()} - -
+ +
+ + + {@render children?.()} + +
+
diff --git a/src/shared/shadcn/ui/scroll-area/index.ts b/src/shared/shadcn/ui/scroll-area/index.ts new file mode 100644 index 0000000..2d8d691 --- /dev/null +++ b/src/shared/shadcn/ui/scroll-area/index.ts @@ -0,0 +1,10 @@ +import Scrollbar from './scroll-area-scrollbar.svelte'; +import Root from './scroll-area.svelte'; + +export { + Root, + // , + Root as ScrollArea, + Scrollbar, + Scrollbar as ScrollAreaScrollbar, +}; diff --git a/src/shared/shadcn/ui/scroll-area/scroll-area-scrollbar.svelte b/src/shared/shadcn/ui/scroll-area/scroll-area-scrollbar.svelte new file mode 100644 index 0000000..6dc1737 --- /dev/null +++ b/src/shared/shadcn/ui/scroll-area/scroll-area-scrollbar.svelte @@ -0,0 +1,34 @@ + + + + {@render children?.()} + + diff --git a/src/shared/shadcn/ui/scroll-area/scroll-area.svelte b/src/shared/shadcn/ui/scroll-area/scroll-area.svelte new file mode 100644 index 0000000..45f86c4 --- /dev/null +++ b/src/shared/shadcn/ui/scroll-area/scroll-area.svelte @@ -0,0 +1,46 @@ + + + + + {@render children?.()} + + {#if orientation === 'vertical' || orientation === 'both'} + + {/if} + {#if orientation === 'horizontal' || orientation === 'both'} + + {/if} + +