88 resolveEnabled ,
99 useFeatureSnapshot ,
1010} from "@/shared/features/useFeatureEnabled" ;
11+ import { topChromeBackdrop } from "@/shared/layout/chromeLayout" ;
1112import { cn } from "@/shared/lib/cn" ;
1213import {
1314 Sidebar ,
@@ -23,6 +24,7 @@ import {
2324 SidebarMenuItem ,
2425 useSidebar ,
2526} from "@/shared/ui/sidebar" ;
27+ import { SidebarMenuLabel } from "@/shared/ui/sidebar-menu-label" ;
2628import {
2729 renderSettingsSection ,
2830 settingsSections ,
@@ -103,7 +105,7 @@ function SettingsSectionButton({
103105 : "text-sidebar-foreground/70" ,
104106 ) }
105107 />
106- < span > { section . label } </ span >
108+ < SidebarMenuLabel > { section . label } </ SidebarMenuLabel >
107109 </ SidebarMenuButton >
108110 </ SidebarMenuItem >
109111 ) ;
@@ -216,8 +218,13 @@ export function SettingsView({
216218 data-testid = "settings-sidebar"
217219 variant = "sidebar"
218220 >
221+ < div
222+ aria-hidden = "true"
223+ className = { cn ( "shrink-0" , topChromeBackdrop . height ) }
224+ data-tauri-drag-region
225+ />
219226 < SidebarHeader
220- className = "cursor-default select-none pt-11 "
227+ className = "cursor-default select-none pb-0 pt-3 "
221228 data-tauri-drag-region
222229 >
223230 < SidebarMenu >
@@ -257,7 +264,11 @@ export function SettingsView({
257264
258265 < SidebarFooter >
259266 { appVersion ? (
260- < p className = "px-2 pb-1 text-xs text-sidebar-foreground/45" >
267+ < p
268+ className = "px-2 pb-1 text-xs text-sidebar-foreground/45"
269+ data-buzz-sidebar-secondary
270+ data-testid = "settings-version"
271+ >
261272 v{ appVersion }
262273 </ p >
263274 ) : null }
@@ -269,15 +280,23 @@ export function SettingsView({
269280 "isolate relative min-h-0 min-w-0 overflow-hidden bg-sidebar motion-safe:transition-opacity motion-safe:duration-200" ,
270281 isLoaded ? "opacity-100" : "opacity-0" ,
271282 ) }
283+ data-buzz-shadow-viewport
272284 data-testid = "settings-view"
273285 >
274286 < div
275287 aria-hidden = "true"
276- className = "absolute inset-x-0 top-0 z-10 h-11"
288+ className = { cn ( "relative z-10 shrink-0" , topChromeBackdrop . height ) }
277289 data-tauri-drag-region
278290 />
279- < div className = "relative z-10 ml-px mt-px flex min-h-0 flex-1 flex-col overflow-hidden rounded-tl-xl bg-background pt-11 shadow-[-1px_-1px_0_0_hsl(var(--sidebar-border)/0.45)]" >
280- < section className = "min-h-0 flex-1 overflow-y-auto px-5 pb-12 pt-4 sm:px-6" >
291+ < div
292+ className = "relative z-10 mb-2 ml-px mr-2 mt-px flex min-h-0 flex-1 flex-col overflow-hidden rounded-2xl bg-background shadow-content-edge"
293+ data-buzz-content-surface
294+ data-testid = "settings-content-surface"
295+ >
296+ < section
297+ className = "min-h-0 flex-1 overflow-y-auto px-5 pb-12 pt-6 sm:px-6"
298+ data-testid = "settings-content-scroll"
299+ >
281300 < div
282301 className = "mx-auto flex h-full w-full max-w-4xl flex-col gap-4"
283302 data-testid = { `settings-panel-${ section } ` }
0 commit comments