From b641ab0b8fc020f6c18e50b83f92433fbfd80174 Mon Sep 17 00:00:00 2001 From: "yves.gugger" Date: Mon, 8 Dec 2025 15:27:42 +0100 Subject: [PATCH] fix: Mobile optimization improvements Settings Page: - Horizontal scrollable tabs on mobile (< lg breakpoint) - Vertical sidebar on desktop (lg+) - Hide plan info card on mobile (visible in billing tab) Header: - Added Settings link in mobile menu for authenticated users Global CSS: - Added scrollbar-hide utility class - Added smooth scrolling for touch devices - Added touch-pan-x for horizontal scroll areas - Removed tap highlight on mobile - select-none utility class --- frontend/src/app/globals.css | 33 ++++++++++++++++++++++++++++++ frontend/src/app/settings/page.tsx | 28 +++++++++++++++++++++---- frontend/src/components/Header.tsx | 10 +++++++++ 3 files changed, 67 insertions(+), 4 deletions(-) diff --git a/frontend/src/app/globals.css b/frontend/src/app/globals.css index 30b036d..4e6872e 100644 --- a/frontend/src/app/globals.css +++ b/frontend/src/app/globals.css @@ -140,6 +140,32 @@ @apply bg-border-hover; } +/* Hide scrollbar utility */ +.scrollbar-hide { + -ms-overflow-style: none; + scrollbar-width: none; +} +.scrollbar-hide::-webkit-scrollbar { + display: none; +} + +/* Smooth scrolling for touch devices */ +.scroll-smooth { + scroll-behavior: smooth; + -webkit-overflow-scrolling: touch; +} + +/* Prevent text selection on interactive elements */ +.select-none { + -webkit-user-select: none; + user-select: none; +} + +/* Touch action for horizontal scrolling */ +.touch-pan-x { + touch-action: pan-x; +} + /* Animation delays */ .delay-100 { animation-delay: 100ms; } .delay-150 { animation-delay: 150ms; } @@ -148,3 +174,10 @@ .delay-300 { animation-delay: 300ms; } .delay-400 { animation-delay: 400ms; } .delay-500 { animation-delay: 500ms; } + +/* Mobile tap highlight removal */ +@media (max-width: 640px) { + button, a, input, select, textarea { + -webkit-tap-highlight-color: transparent; + } +} diff --git a/frontend/src/app/settings/page.tsx b/frontend/src/app/settings/page.tsx index 2fbfb33..7549e5a 100644 --- a/frontend/src/app/settings/page.tsx +++ b/frontend/src/app/settings/page.tsx @@ -192,9 +192,29 @@ export default function SettingsPage() { )}
- {/* Sidebar */} + {/* Sidebar - Horizontal scroll on mobile, vertical on desktop */}
-