From da1044bbd41c81867e8f91bd8bee1fc39478f7dd Mon Sep 17 00:00:00 2001 From: admin Date: Mon, 1 Jun 2026 16:52:08 +0800 Subject: [PATCH] style(calendar): fix horizontal scroll overlapping by changing table to border-separate and enabling sticky position on employee column --- .../js/pages/hr/attendance-records/calendar.tsx | 14 +++++++------- resources/js/pages/hr/shifts/calendar.tsx | 16 ++++++++-------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/resources/js/pages/hr/attendance-records/calendar.tsx b/resources/js/pages/hr/attendance-records/calendar.tsx index 2615ff068..65d0277af 100644 --- a/resources/js/pages/hr/attendance-records/calendar.tsx +++ b/resources/js/pages/hr/attendance-records/calendar.tsx @@ -389,24 +389,24 @@ export default function AttendanceCalendar() { {/* Matrix Grid */}
- +
- - + {dates?.map((d: any, idx: number) => ( - ))} - + {users?.length > 0 ? users.map((user: any) => ( -
+
{t('Employee')} +
{d.day}
{d.day_name}
+
{user.name.split(' ').map((n: string) => n[0]).join('').substring(0, 2).toUpperCase()} @@ -426,7 +426,7 @@ export default function AttendanceCalendar() { {dates?.map((d: any, idx: number) => { const cellData = user.records[d.date]; return ( -
+
- +
- - + {dates?.map((d: any, idx: number) => ( - ))} - + {users?.length > 0 ? users.map((user: any) => ( -
+
{t('Employee')} +
{d.day}
{d.day_name}
+
-
+
{user.name.split(' ').map((n: string) => n[0]).join('').substring(0, 2).toUpperCase()}
@@ -270,7 +270,7 @@ export default function ShiftCalendar() { : ''; return ( -
+
handleCellClick(user, d.date, cellData)}