From 9f1135325c102938e8ceab8ffb8adfc914f3df02 Mon Sep 17 00:00:00 2001 From: Marco Sadjadi Date: Tue, 26 May 2026 19:27:57 +0200 Subject: [PATCH] feat(web): drop 'newest' sort + width-cap categories on /templates Two narrow fixes for mobile chip-row width: - Removed the 'newest' sort button. Trending and Top cover the use cases; newest was largely redundant with Top sorted on createdAt. - Capped the categories truncates the visible label with ellipsis; the dropdown panel still shows full names when opened. Co-Authored-By: Claude Opus 4.7 (1M context) --- apps/web/app/templates/page.tsx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/apps/web/app/templates/page.tsx b/apps/web/app/templates/page.tsx index 12879cd..754bb94 100644 --- a/apps/web/app/templates/page.tsx +++ b/apps/web/app/templates/page.tsx @@ -26,7 +26,7 @@ interface Template { createdAt: string; } -type Sort = 'trending' | 'top' | 'newest'; +type Sort = 'trending' | 'top'; type Scope = 'all' | 'mine'; const STATUS_STYLE: Record = { @@ -202,7 +202,7 @@ export default function TemplatesMarketplace() { {scope === 'all' && ( <>
- {(['trending', 'top', 'newest'] as Sort[]).map((s) => ( + {(['trending', 'top'] as Sort[]).map((s) => (