From d99bbb5bfe60d2798f208a5dcbceab0ec3df41d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Burak=20Boduro=C4=9Flu?= <80620802+burakboduroglu@users.noreply.github.com> Date: Wed, 22 Jul 2026 12:59:07 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=92=84=20expand=20actions=20column?= =?UTF-8?q?=20width=20across=20reports=20&=20data=20tables=20to=20prevent?= =?UTF-8?q?=20truncation=20of=20=C4=B0=C5=9ELEMLER=20header=20-=20increase?= =?UTF-8?q?=20default=20actionColumnClass=20width=20in=20DataTable=20from?= =?UTF-8?q?=20w-20=20to=20w-28=20(min-w-[7rem])=20with=20whitespace-nowrap?= =?UTF-8?q?=20-=20update=20actions=20column=20headerClass=20across=20repor?= =?UTF-8?q?t=20pages=20(student=20marks,=20student=20attendance,=20student?= =?UTF-8?q?=20pomodoro,=20staff=20work,=20terms,=20and=20users)=20-=20veri?= =?UTF-8?q?fy=20full=20visibility=20of=20=C4=B0=C5=9ELEMLER=20header=20wit?= =?UTF-8?q?hout=20cutoff=20or=20text=20wrapping=20-=20pass=20production=20?= =?UTF-8?q?build=20and=20207/207=20vitest=20unit=20tests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ui/data-table.tsx | 2 +- src/components/users/user-table.tsx | 11 +++-------- src/pages/staff-work-page.tsx | 4 ++-- src/pages/student-attendance-page.tsx | 2 +- src/pages/student-marks-page.tsx | 2 +- src/pages/student-pomodoro-page.tsx | 2 +- src/pages/terms-page.tsx | 2 +- 7 files changed, 10 insertions(+), 15 deletions(-) diff --git a/src/components/ui/data-table.tsx b/src/components/ui/data-table.tsx index 8e98368..f0f17ad 100644 --- a/src/components/ui/data-table.tsx +++ b/src/components/ui/data-table.tsx @@ -110,7 +110,7 @@ export function DataTable(props: DataTableProps columnId === "actions" || columnId === "update"; - const actionColumnClass = (columnId: string) => hiddenLocked(columnId) ? "w-20 min-w-20 max-w-20 px-1 text-center" : undefined; + const actionColumnClass = (columnId: string) => hiddenLocked(columnId) ? "w-28 min-w-[7rem] px-2 text-center whitespace-nowrap" : undefined; const hideableColumns = () => table.getAllColumns().filter((column) => column.getCanHide() && !hiddenLocked(column.id)); const columnLabel = (column: Column) => { const header = column.columnDef.header; diff --git a/src/components/users/user-table.tsx b/src/components/users/user-table.tsx index 4985f88..f957202 100644 --- a/src/components/users/user-table.tsx +++ b/src/components/users/user-table.tsx @@ -8,7 +8,7 @@ import { Badge } from "@/components/ui/badge"; import { ConfirmDialog } from "@/components/ui/confirm-dialog"; import { DataTable } from "@/components/ui/data-table"; import { TableRowActions } from "@/components/ui/table-row-actions"; -import { IconCheck, IconEye, IconUsers } from "@/components/ui/icons"; +import { IconCheck, IconUsers } from "@/components/ui/icons"; import { ROLES } from "@/lib/roles"; import { cn } from "@/lib/cn"; import { useT } from "@/stores/preferences-context"; @@ -128,13 +128,8 @@ export function UserTable(props: { }, { id: "actions", - header: () => ( - - - {t("common.actions")} - - ), - meta: { headerClass: "w-14 text-center", cellClass: "w-14" }, + header: t("common.actions"), + meta: { headerClass: "w-28 min-w-[7rem] text-center whitespace-nowrap", cellClass: "w-28 text-center" }, cell: (cell) => ( —}> ( ( ( ( ( (