From 8e8b96fcde8014fbd5ea726fc5b1e57cd8434277 Mon Sep 17 00:00:00 2001 From: NotiBot Date: Tue, 3 Feb 2026 14:59:40 +0100 Subject: [PATCH] =?UTF-8?q?Horizontalen=20Scroll=20verhindern:=20Lange=20T?= =?UTF-8?q?ask-Titel=20werden=20=C3=BCberall=20abgeschnitten?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Globales overflow-x: hidden auf html/body/#root in index.css - App.tsx: overflow-x-hidden und min-w-0 auf Hauptcontainer - TaskCard: Eltern-Task-Titel mit truncate/min-w-0 im Flex-Layout - KanbanBoard: min-w-0 overflow-hidden auf Spalten-Cards - FiveMinuteStarter: truncate auf Task-Titel - HyperfocusGuard: truncate auf Task-Buttons - TaskBreakdownModal: truncate auf Task- und Subtask-Titel - NotificationsPage: truncate + min-w-0 auf Benachrichtigungs-Titel --- client/src/App.tsx | 4 ++-- client/src/components/KanbanBoard.tsx | 6 +++--- client/src/components/TaskCard.tsx | 8 ++++---- client/src/components/adhd/ai/TaskBreakdownModal.tsx | 6 +++--- client/src/components/adhd/focus/FiveMinuteStarter.tsx | 2 +- client/src/components/adhd/focus/HyperfocusGuard.tsx | 1 + client/src/index.css | 6 ++++++ client/src/pages/NotificationsPage.tsx | 6 +++--- 8 files changed, 23 insertions(+), 16 deletions(-) diff --git a/client/src/App.tsx b/client/src/App.tsx index ebc969d..ef5ab9c 100644 --- a/client/src/App.tsx +++ b/client/src/App.tsx @@ -349,7 +349,7 @@ function AppContent() { -
+
{/* Mobile Header with Sidebar Toggle */}
@@ -360,7 +360,7 @@ function AppContent() { {t('app.title')}
-
+
handleDrop(column.status)} data-testid={`column-${column.id}`} @@ -494,7 +494,7 @@ export default function KanbanBoard({ tasks, onTaskStatusChange, onTaskUpdate, o return ( handleDrop(column.status)} data-testid={`column-${column.id}`} @@ -558,7 +558,7 @@ export default function KanbanBoard({ tasks, onTaskStatusChange, onTaskUpdate, o return ( handleDrop(column.status)} data-testid={`column-${column.id}`} diff --git a/client/src/components/TaskCard.tsx b/client/src/components/TaskCard.tsx index c1a2c85..3eeceb9 100644 --- a/client/src/components/TaskCard.tsx +++ b/client/src/components/TaskCard.tsx @@ -351,10 +351,10 @@ export default function TaskCard({ task, onStartTimer, onStopTimer, onEdit, onDe {/* Parent Task Link rendered in title now */}

{parentTask ? ( - - {parentTask.title} - - {task.title} + + {parentTask.title} + + {task.title} ) : ( task.title diff --git a/client/src/components/adhd/ai/TaskBreakdownModal.tsx b/client/src/components/adhd/ai/TaskBreakdownModal.tsx index 94f11b9..04fa4a6 100644 --- a/client/src/components/adhd/ai/TaskBreakdownModal.tsx +++ b/client/src/components/adhd/ai/TaskBreakdownModal.tsx @@ -125,7 +125,7 @@ export function TaskBreakdownModal({ task, open, onOpenChange }: TaskBreakdownMo {/* Task info */}
-

{task.title}

+

{task.title}

{task.description && (

{task.description}

)} @@ -195,8 +195,8 @@ export function TaskBreakdownModal({ task, open, onOpenChange }: TaskBreakdownMo onCheckedChange={() => handleToggleSubtask(index)} className="mt-0.5" /> -
-

{subtask.title}

+
+

{subtask.title}

~{subtask.estimatedMinutes} min diff --git a/client/src/components/adhd/focus/FiveMinuteStarter.tsx b/client/src/components/adhd/focus/FiveMinuteStarter.tsx index b4148ac..7838ba5 100644 --- a/client/src/components/adhd/focus/FiveMinuteStarter.tsx +++ b/client/src/components/adhd/focus/FiveMinuteStarter.tsx @@ -117,7 +117,7 @@ export function FiveMinuteStarter({

{t('adhd.fiveMin.title')}

-

+

{task.title}

diff --git a/client/src/components/adhd/focus/HyperfocusGuard.tsx b/client/src/components/adhd/focus/HyperfocusGuard.tsx index 4edbfc6..4a64402 100644 --- a/client/src/components/adhd/focus/HyperfocusGuard.tsx +++ b/client/src/components/adhd/focus/HyperfocusGuard.tsx @@ -147,6 +147,7 @@ export function HyperfocusGuard({ activeTaskId, onTaskStart }: HyperfocusGuardPr hover:bg-amber-200 dark:hover:bg-amber-900 transition-colors text-sm text-amber-900 dark:text-amber-100 + truncate `} > {task.title} diff --git a/client/src/index.css b/client/src/index.css index b9a4c51..376952b 100644 --- a/client/src/index.css +++ b/client/src/index.css @@ -2,6 +2,12 @@ @tailwind components; @tailwind utilities; +/* Prevent horizontal scroll globally */ +html, body, #root { + overflow-x: hidden; + max-width: 100vw; +} + /* LIGHT MODE */ :root { --button-outline: rgba(0,0,0, .10); diff --git a/client/src/pages/NotificationsPage.tsx b/client/src/pages/NotificationsPage.tsx index 0f782fd..33030d3 100644 --- a/client/src/pages/NotificationsPage.tsx +++ b/client/src/pages/NotificationsPage.tsx @@ -110,9 +110,9 @@ export default function NotificationsPage() {

{notif.type === 'overdue' ? : }
-
-
-

{notif.task.title}

+
+
+

{notif.task.title}

{formatDistanceToNow(notif.timestamp, { addSuffix: true, locale: i18n.language === 'de' ? de : enUS })}