From 147ae0f4c701f74fc8845e4556bde08bb62dcd36 Mon Sep 17 00:00:00 2001 From: SylvainP1 <5533467-SylvainP1@users.noreply.replit.com> Date: Tue, 14 Apr 2026 08:34:21 +0000 Subject: [PATCH] Make the timesheet grid more compact and fully visible Adjust table layout and styling in `timesheet-detail.tsx` to ensure all daily columns are visible without horizontal scrolling, by reducing column width and font sizes. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 55837015-10e9-4be9-b857-7f5e6be73772 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 0bd07880-9d2c-48df-86e1-9d0c827ee4a5 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1cc377db-7ea0-49f2-97ce-c3e87e0228cc/55837015-10e9-4be9-b857-7f5e6be73772/NknTeZP Replit-Helium-Checkpoint-Created: true --- .../cra-app/src/pages/timesheet-detail.tsx | 63 ++++++++++--------- 1 file changed, 33 insertions(+), 30 deletions(-) diff --git a/artifacts/cra-app/src/pages/timesheet-detail.tsx b/artifacts/cra-app/src/pages/timesheet-detail.tsx index 7707c08..3535433 100644 --- a/artifacts/cra-app/src/pages/timesheet-detail.tsx +++ b/artifacts/cra-app/src/pages/timesheet-detail.tsx @@ -289,9 +289,8 @@ export default function TimesheetDetailPage() {
- {/* Actions bar */} {isEditable && ( -
+
)} - {/* The Grid */} -
- - +
+
+ + + {daysArray.map(day => ( + + ))} + + + - {daysArray.map(day => ( ))} - @@ -332,24 +337,24 @@ export default function TimesheetDetailPage() { {!timesheet.lines || timesheet.lines.length === 0 ? ( - ) : ( timesheet.lines.map(line => ( - ); })} - )) )} - + - {daysArray.map(day => ( - ))} -
+ Projet -
- {day.dayName} - {day.dayNum} +
+ {day.dayName.slice(0, 2)} + {day.dayNum}
+ Total
+ Aucun projet ajouté. Cliquez sur "Ajouter un projet" pour commencer.
-
-
-
{line.projectName}
-
{line.projectCode} {line.client ? `• ${line.client}` : ''}
+
+
+
+
{line.projectName}
+
{line.projectCode} {line.client ? `• ${line.client}` : ''}
{isEditable && (
+ {rowTotals[line.id] > 0 ? ( - - {rowTotals[line.id]}h - + {rowTotals[line.id]}h ) : "-"}
+ Total du jour + {colTotals[day.dateStr] > 0 ? colTotals[day.dateStr] : ""} + {grandTotal}h