From ecc4fc038a816b7be4109d11305d0d52595f8e07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yusuf=20=C4=B0pek?= Date: Sun, 23 Nov 2025 15:25:03 +0300 Subject: [PATCH] refactor: Improve mobile responsiveness of RecommendationsSection header and add translation for "All" filter - Make header layout stack vertically on mobile with flex-col, horizontal on desktop with sm:flex-row - Make action buttons full-width on mobile, auto-width on desktop - Reverse button order on mobile (customize first, then select/deselect) using flex-col-reverse - Make collapse/expand button full-width on mobile - Add "All" translation key to both English and Turkish locales --- src/components/RecommendationsSection.tsx | 10 ++++++---- src/contexts/LocaleContext.tsx | 2 ++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/components/RecommendationsSection.tsx b/src/components/RecommendationsSection.tsx index 0d2ecc4..71f579d 100644 --- a/src/components/RecommendationsSection.tsx +++ b/src/components/RecommendationsSection.tsx @@ -133,7 +133,7 @@ export function RecommendationsSection({ return ( setIsExpanded(!isExpanded)}> -
+
@@ -152,7 +152,7 @@ export function RecommendationsSection({
-
+
{isExpanded && ( <> {profile.categories.map(cat => { const count = getCategoryCount(cat) diff --git a/src/contexts/LocaleContext.tsx b/src/contexts/LocaleContext.tsx index 11310b9..7abc394 100644 --- a/src/contexts/LocaleContext.tsx +++ b/src/contexts/LocaleContext.tsx @@ -10,6 +10,7 @@ const translations = { title: "RepoHub - Cross-Platform Package Manager", subtitle: "Cross-Platform Package Manager", description: "Simplify software installation across Linux, Windows, and macOS with official repositories", + all: "All", close: "Close", next: "Next", back: "Back", @@ -203,6 +204,7 @@ const translations = { title: "RepoHub - Çok Platformlu Paket Yöneticisi", subtitle: "Çok Platformlu Paket Yöneticisi", description: "Linux, Windows ve macOS'te resmi depoları kullanarak yazılım kurulumunu basitleştirin", + all: "Tümü", close: "Kapat", next: "İleri", back: "Geri",