From bcb43a0ae7134e3a73122e592e922687b0bdad38 Mon Sep 17 00:00:00 2001 From: paul-nothaft <40865108-paul-nothaft@users.noreply.replit.com> Date: Fri, 12 Sep 2025 12:57:10 +0000 Subject: [PATCH] Improve visual layout and responsiveness of the task calendar view Update CSS classes in `TasksWithCalendar.tsx` to adjust element sizing, padding, and text sizes for improved responsiveness across different screen sizes, specifically targeting small mobile devices. Replit-Commit-Author: Agent Replit-Commit-Session-Id: ceced2fc-aa46-458d-ba87-ddd4b7bb1518 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/659922a9-0087-461c-90dd-6d9a58b81d4d/ceced2fc-aa46-458d-ba87-ddd4b7bb1518/7CG7dga --- client/src/components/TasksWithCalendar.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/client/src/components/TasksWithCalendar.tsx b/client/src/components/TasksWithCalendar.tsx index effb083..dd13def 100644 --- a/client/src/components/TasksWithCalendar.tsx +++ b/client/src/components/TasksWithCalendar.tsx @@ -368,7 +368,7 @@ export default function TasksWithCalendar({ tasks, onTaskUpdate, onTaskEdit, onS const hoverClasses = isHovered && draggedTask ? 'ring-2 ring-primary bg-primary/15 border-primary shadow-lg' : ''; const dragClasses = draggedTask && !isHovered ? 'border-dashed border-primary/30' : ''; - const finalClassName = `p-2 min-h-[100px] transition-all border-2 ${todayClasses} ${weekendClasses} ${hoverClasses} ${dragClasses}`; + const finalClassName = `p-2 sm:p-2 min-h-[140px] sm:min-h-[100px] transition-all border-2 ${todayClasses} ${weekendClasses} ${hoverClasses} ${dragClasses}`; return (
-
{format(date, 'EEE')}
-
{format(date, 'MMM d')} @@ -420,14 +420,14 @@ export default function TasksWithCalendar({ tasks, onTaskUpdate, onTaskEdit, onS > -
+
{task.title}
@@ -436,7 +436,7 @@ export default function TasksWithCalendar({ tasks, onTaskUpdate, onTaskEdit, onS })} {dayTasks.length > 2 && ( - + +{dayTasks.length - 2} )}