From 735fb542660abd7fcba4536df4df915cb4f7e181 Mon Sep 17 00:00:00 2001 From: Louis Knight-Webb Date: Fri, 4 Jul 2025 00:47:21 +0100 Subject: [PATCH] Made the task details header more concise by: (#70) 1. **Reduced padding**: Changed from `p-6 pb-4` to `p-4 pb-2` 2. **Smaller title**: Changed from `text-xl` to `text-lg` and reduced bottom margin 3. **Compact description**: - Smaller text (`text-xs` instead of `text-sm`) - Less padding (`p-2` instead of `p-3`) - Lighter background (`bg-muted/20` instead of `bg-muted/30`) - Added left border for visual distinction - Reduced line clamp from 6 to 3 lines - Lower expansion threshold (150 vs 200 characters) This provides significantly more space for content below while maintaining readability. --- .../components/tasks/TaskDetailsHeader.tsx | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/frontend/src/components/tasks/TaskDetailsHeader.tsx b/frontend/src/components/tasks/TaskDetailsHeader.tsx index 5d1960c7..8ab2aed4 100644 --- a/frontend/src/components/tasks/TaskDetailsHeader.tsx +++ b/frontend/src/components/tasks/TaskDetailsHeader.tsx @@ -53,10 +53,10 @@ export function TaskDetailsHeader({ return (
{/* Title and Task Actions */} -
+
-

+

{task.title}

@@ -118,27 +118,27 @@ export function TaskDetailsHeader({
{/* Description */} -
-
+
+
{task.description ? (

200 - ? 'line-clamp-6' + className={`text-xs whitespace-pre-wrap text-muted-foreground ${ + !isDescriptionExpanded && task.description.length > 150 + ? 'line-clamp-3' : '' }`} > {task.description}

- {task.description.length > 200 && ( + {task.description.length > 150 && (
) : ( -

+

No description provided

)}