feature/project-redesign #28

Merged
ilia merged 88 commits from feature/project-redesign into main 2026-03-02 19:46:39 +00:00
Showing only changes of commit 80feda41a3 - Show all commits

View File

@@ -146,12 +146,20 @@ export function createResponsiveManager(customBreakpoints?: Partial<Breakpoints>
*/
const currentBreakpoint = $derived<keyof Breakpoints | 'xs'>(
(() => {
if (isMobile) return 'mobile';
if (isTabletPortrait) return 'tabletPortrait';
if (isTablet) return 'tablet';
if (isDesktop) return 'desktop';
if (isDesktopLarge) return 'desktopLarge';
return 'xs'; // Fallback for very small screens
switch (true) {
case isMobile:
return 'mobile';
case isTabletPortrait:
return 'tabletPortrait';
case isTablet:
return 'tablet';
case isDesktop:
return 'desktop';
case isDesktopLarge:
return 'desktopLarge';
default:
return 'xs'; // Fallback for very small screens
}
})(),
);