From 018c36487dced678965d5cb0cbc6108d059fc5c3 Mon Sep 17 00:00:00 2001 From: vibe-bot Date: Fri, 8 Aug 2025 15:15:42 +0200 Subject: [PATCH] fix(ui): doppelten 'Neu'-Tab vermeiden Backend benennt Tab in 'Neu (10)' um; nur ein Neu-Tab im Frontend --- server/src/index.ts | 2 +- web/src/App.tsx | 15 --------------- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/server/src/index.ts b/server/src/index.ts index 2fa3689..ac3f7ca 100644 --- a/server/src/index.ts +++ b/server/src/index.ts @@ -332,7 +332,7 @@ app.get('/api/sounds', (req: Request, res: Response) => { const recentCount = Math.min(10, total); const foldersOut = [ { key: '__all__', name: 'Alle', count: total }, - { key: '__recent__', name: 'Neu', count: recentCount }, + { key: '__recent__', name: 'Neu (10)', count: recentCount }, ...folders ]; // isRecent-Flag für UI (Top 5 der neuesten) diff --git a/web/src/App.tsx b/web/src/App.tsx index 997879c..ca770cd 100644 --- a/web/src/App.tsx +++ b/web/src/App.tsx @@ -230,21 +230,6 @@ export default function App() { > Favoriten ({favCount}) - {/* Neueste 10 */} - {folders.map((f) => (