From 68777ca0511bc8f3cfb41be2be1d55106d81904b Mon Sep 17 00:00:00 2001 From: NotiBot Date: Tue, 3 Feb 2026 15:22:22 +0100 Subject: [PATCH] =?UTF-8?q?Fix:=20Horizontales=20Scrollen=20auf=20Mobilger?= =?UTF-8?q?=C3=A4ten=20endg=C3=BCltig=20behoben?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - TaskCard: motion.div in overflow-hidden Wrapper gepackt - TaskCard: overscrollBehaviorX auf motion.div gesetzt - TaskCard: Titel und Badge-Zeile mit max-w-full/overflow-hidden abgesichert - TasksWithCalendar: Negative Margins (-mx-4/-mx-6) am Calendar entfernt - TasksWithCalendar: overflow-x-hidden auf Scrollable Task List - index.css: overscroll-behavior-x: none global auf html/body/#root - index.css: max-width: 100% als globale Absicherung gegen Overflow --- client/src/components/TaskCard.tsx | 13 ++++++++----- client/src/components/TasksWithCalendar.tsx | 4 ++-- client/src/index.css | 11 +++++++++++ 3 files changed, 21 insertions(+), 7 deletions(-) diff --git a/client/src/components/TaskCard.tsx b/client/src/components/TaskCard.tsx index 3eeceb9..e2030a3 100644 --- a/client/src/components/TaskCard.tsx +++ b/client/src/components/TaskCard.tsx @@ -295,6 +295,7 @@ export default function TaskCard({ task, onStartTimer, onStopTimer, onEdit, onDe : null; return ( +
@@ -349,12 +351,12 @@ export default function TaskCard({ task, onStartTimer, onStopTimer, onEdit, onDe }} > {/* Parent Task Link rendered in title now */} -

+

{parentTask ? ( - - {parentTask.title} + + {parentTask.title} - {task.title} + {task.title} ) : ( task.title @@ -366,7 +368,7 @@ export default function TaskCard({ task, onStartTimer, onStopTimer, onEdit, onDe

)} -
+
+
); } \ No newline at end of file diff --git a/client/src/components/TasksWithCalendar.tsx b/client/src/components/TasksWithCalendar.tsx index fb37f31..25d120c 100644 --- a/client/src/components/TasksWithCalendar.tsx +++ b/client/src/components/TasksWithCalendar.tsx @@ -355,7 +355,7 @@ export default function TasksWithCalendar({ tasks, onTaskUpdate, onTaskEdit, onT
{/* Scrollable Task List */} -
+
{unscheduledTasks.length === 0 ? (

@@ -409,7 +409,7 @@ export default function TasksWithCalendar({ tasks, onTaskUpdate, onTaskEdit, onT

{/* Calendar Section - Fixed at bottom */} -
+
{/* Calendar Header */}
diff --git a/client/src/index.css b/client/src/index.css index 376952b..f0d499f 100644 --- a/client/src/index.css +++ b/client/src/index.css @@ -6,6 +6,17 @@ html, body, #root { overflow-x: hidden; max-width: 100vw; + overscroll-behavior-x: none; +} + +/* Prevent any element from causing horizontal overflow */ +* { + max-width: 100%; +} + +/* Exceptions for elements that legitimately need wider content */ +.overflow-x-auto, [style*="grid-template-columns"] { + max-width: none; } /* LIGHT MODE */