feat(ui): responsive layout for mobile and wide screens

- Add explicit viewport meta (device-width) for proper mobile scaling.
- Widen the main container (720 -> 960, 1120 on >=1280px) with fluid
  clamp() padding so wide screens are used better.
- Wrap the top nav and allow it to reflow on narrow screens.
- Collapse the key/value grid to a single column and enlarge touch
  targets on small screens.
- Keep single-form pages (login/signup/activate) in a readable narrow
  column instead of stretching full width.
This commit is contained in:
Gerhard Scheikl
2026-06-01 21:06:18 +02:00
parent 2c2afa458e
commit 0fbabdad31
5 changed files with 66 additions and 8 deletions
+6 -1
View File
@@ -1,4 +1,4 @@
import type { Metadata } from 'next';
import type { Metadata, Viewport } from 'next';
import Link from 'next/link';
import './globals.css';
import { createSupabaseServerClient } from '@/lib/supabase/server';
@@ -8,6 +8,11 @@ export const metadata: Metadata = {
description: 'Remote access tunnels for Home Assistant',
};
export const viewport: Viewport = {
width: 'device-width',
initialScale: 1,
};
export const dynamic = 'force-dynamic';
export default async function RootLayout({