From 66ae3ab975e653b8b5b4644f6b84cc8cbd9c79bc Mon Sep 17 00:00:00 2001 From: irrlicht Date: Fri, 9 Oct 2026 22:22:28 +0200 Subject: [PATCH] Navigation: Rechtstexte ohne Icon MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Die Sigillen als Navigations-Icons wirkten zu prätentiös; Datenschutz, Beitragsordnung und Impressum stehen jetzt nur als Text in der Seitenleiste. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01TiXsPUqw7oeomZ8wZrQW5q --- frontend/src/Nav.tsx | 15 +++++---------- frontend/src/app.css | 5 ----- notes/frontend.md | 2 +- 3 files changed, 6 insertions(+), 16 deletions(-) diff --git a/frontend/src/Nav.tsx b/frontend/src/Nav.tsx index 18fc6d6..82018c5 100644 --- a/frontend/src/Nav.tsx +++ b/frontend/src/Nav.tsx @@ -4,7 +4,7 @@ import { Bell, ChartColumn, House, LogOut, MessageSquare, Search, Settings, User import { api } from "./api"; import { useAuthChanged, useMe } from "./auth"; -type Target = { title: string; icon: ReactNode; to: string; end?: boolean }; +type Target = { title: string; icon?: ReactNode; to: string; end?: boolean }; // useMainTargets liefert die fünf wichtigsten Ziele (TabBar, Kopf der // Seitenleiste). Das Profil zeigt angemeldet aufs eigene Profil, sonst auf @@ -26,16 +26,11 @@ const moreTargets: Target[] = [ { title: "Statistik", icon: , to: "/stats" }, ]; -// Die Rechtstexte tragen die Sigillen aus static/assets/sigils statt -// lucide-Icons. -function Sigil({ name }: { name: string }) { - return ; -} - +// Die Rechtstexte stehen ohne Icon in der Seitenleiste. const docs: Target[] = [ - { title: "Datenschutz", icon: , to: "/datenschutz" }, - { title: "Beitragsordnung", icon: , to: "/beitragsordnung" }, - { title: "Impressum", icon: , to: "/impressum" }, + { title: "Datenschutz", to: "/datenschutz" }, + { title: "Beitragsordnung", to: "/beitragsordnung" }, + { title: "Impressum", to: "/impressum" }, ]; // Sidebar: alle Ziele mit Icon und Titel. Auf dem Desktop immer sichtbar, diff --git a/frontend/src/app.css b/frontend/src/app.css index 8ff61f7..123cdcb 100644 --- a/frontend/src/app.css +++ b/frontend/src/app.css @@ -104,11 +104,6 @@ h2 { vertical-align: middle; } -/* Sigillen sind schwarze Bilder: im aktiven (invertierten) Eintrag weiß. */ -#sidebar a.active .sigil { - filter: invert(1); -} - #topbar { display: flex; align-items: center; diff --git a/notes/frontend.md b/notes/frontend.md index 8a773c8..55187bc 100644 --- a/notes/frontend.md +++ b/notes/frontend.md @@ -46,7 +46,7 @@ githooks` läuft das nach jedem Commit automatisch im Hintergrund (Log: | `src/auth.ts` | `useMe()` (eigenes Konto oder `null`), `useAuthChanged()` | | `src/main.tsx` | Router, QueryClient | | `src/Layout.tsx` | Seitenrahmen: Kopf (mobil mit Menü und Einstellungen), Schublade | -| `src/Nav.tsx` | Seitenleiste (alle Ziele) und mobile TabBar (fünf wichtigste); Icons von lucide-react, die Rechtstexte tragen die Sigillen aus `static/assets/sigils` | +| `src/Nav.tsx` | Seitenleiste (alle Ziele) und mobile TabBar (fünf wichtigste); Icons von lucide-react, die Rechtstexte ohne Icon | | `src/docs/*.html` | Rechtstexte (Impressum, Datenschutz, Beitragsordnung) | | `src/pages/*` | Startseite, Thread, Profil, Statistik, Rechtstexte (`DocPage.tsx`); `Placeholder.tsx` für Suche, Benachrichtigungen, Chats, Einstellungen und die Profil-Weiche `/me` | | `src/components/*` | Feed, Beitragskarte, Votes, Repost, Login, Beitrag verfassen |