SurfSense/surfsense_web/components/layout
Matt Van Horn ca0e08787c
fix(slide-out): use shared useIsMobile (768px) instead of ad-hoc 640px media query
Fixes #1359

The SidebarSlideOutPanel was checking '(min-width: 640px)' while the rest of
the dashboard uses the project-wide useIsMobile() at 768px. At viewports
between 640-767px the slide-out rendered the desktop side-attached overlay
while the surrounding layout had already collapsed to mobile, leaving the
panel positioned against a sidebar that was no longer there.

Aligning to the shared hook fixes the layout choice at every viewport size.
useIsMobile's 768px threshold is unchanged; only this call site adapts.
2026-05-18 23:46:50 -07:00
..
hooks chore: linting 2026-03-31 14:45:46 -07:00
providers feat(sidebar): live pages meter via Zero for authenticated users 2026-05-02 03:32:19 +05:30
types refactor: update LayoutDataProvider and NavSection components to use DocumentsProcessingStatus for improved document processing status handling 2026-03-08 21:16:52 +05:30
ui fix(slide-out): use shared useIsMobile (768px) instead of ad-hoc 640px media query 2026-05-18 23:46:50 -07:00
index.ts Merge branch 'dev' into implement-surfsense-docs-mentions 2026-01-13 00:55:16 -08:00