From ee169427423d4c454c0624744f804a17df41dc63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reinhard=20X=2E=20F=C3=BCrst?= Date: Sun, 23 Aug 2026 09:46:18 +0200 Subject: [PATCH 1/3] Formular und Liste responsiv gestalten MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Eingabemaske als CSS-Grid statt starrer Tabelle, damit sie auf dem Smartphone vollständig sichtbar bleibt (2/4/8 Spalten je nach Breite). Einträge-Liste zeigt unterhalb von 768px eine zweizeilige Kartenansicht statt der breiten Tabelle. Anzahl geladener Einträge von 15 auf 5 reduziert. Co-Authored-By: Claude Sonnet 5 --- app/page.tsx | 4 +- components/TabLayout.tsx | 6 +- components/WerteForm.tsx | 226 ++++++++++++++++++++------------------- components/WerteList.tsx | 156 +++++++++++++++++---------- 4 files changed, 221 insertions(+), 171 deletions(-) diff --git a/app/page.tsx b/app/page.tsx index 37362bb..5fae692 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -6,7 +6,7 @@ import WerteList from '@/components/WerteList'; import { WerteEntry } from '@/types/werte'; import TabLayout from '@/components/TabLayout'; -const MAX_ENTRIES = 15 +const MAX_ENTRIES = 5 export default function Home() { const [entries, setEntries] = useState([]); @@ -45,7 +45,7 @@ export default function Home() { const refreshEntries = async () => { try { - const response = await fetch('/api/werte?limit=14', { + const response = await fetch(`/api/werte?limit=${MAX_ENTRIES}`, { cache: 'no-store', headers: { 'Cache-Control': 'no-cache', diff --git a/components/TabLayout.tsx b/components/TabLayout.tsx index 9493774..74769fd 100644 --- a/components/TabLayout.tsx +++ b/components/TabLayout.tsx @@ -19,9 +19,9 @@ export default function TabLayout({ children }: TabLayoutProps) { const buildDate = process.env.NEXT_PUBLIC_BUILD_DATE || new Date().toLocaleDateString('de-DE', { day: '2-digit', month: '2-digit', year: 'numeric' }); return ( -
+
{/* Outer wrapper: ~10% wider than the inner max-w-6xl (72rem → ~79rem), with border */} -
+
{/* Page title */}

Werte-Log

@@ -51,7 +51,7 @@ export default function TabLayout({ children }: TabLayoutProps) {
{/* Content panel */} -
+
{children}