feat: add reduce motion settings and update related UI components

This commit is contained in:
Flavio Fois
2026-02-09 22:45:56 +01:00
parent 51679b61eb
commit 4b6f2d727c
6 changed files with 47 additions and 7 deletions

View File

@@ -319,11 +319,9 @@
</div>
</div>
<div class="content">
<Sidebar.Provider>
{#if $sidebarOpen}
<div class="content" class:reduce-motion={settingsStore.settings.reduceMotion}>
<Sidebar.Provider open={$sidebarOpen} onOpenChange={(v) => sidebarOpen.set(v)}>
<AppSidebar />
{/if}
<main>
<!-- <Sidebar.Trigger /> -->
<Toaster />
@@ -752,6 +750,12 @@
max-height: 100% !important;
}
/* Disable sidebar transitions when reduce-motion is active */
:global(.content.reduce-motion [data-slot="sidebar-gap"]),
:global(.content.reduce-motion [data-slot="sidebar-container"]) {
transition-duration: 0s !important;
}
::-webkit-scrollbar {
width: 6px;
height: 6px;