Files
alla-tms/plans/responsive-datatable-review.md
2026-07-16 09:53:14 +07:00

1.7 KiB
Raw Permalink Blame History

Implement Sprint 6.12.1 Global DataTable Responsive Fix

Goal: Fix all DataTable layouts so they never overflow outside the content area.

Problem: Training Records page currently overflows horizontally. Pagination is partially outside the viewport. Some table columns push the layout beyond the available width.

This fix must apply to ALL DataTable pages, including:

  • Training Records
  • Pending Review
  • Employee Directory
  • Users
  • Reports
  • Any reusable DataTable component

Requirements:

  1. Every page container must use:
className = "flex-1 min-w-0";
  1. Every Card containing tables:
overflow - hidden;
  1. Every table wrapper:
<div className="w-full overflow-x-auto">
  1. Table:
<Table className="min-w-full">

Do not allow page-level overflow.

  1. Pagination

Must stay inside container.

Recommended:

flex;
flex - wrap;
justify - between;
items - center;
gap - 4;
  1. Search section

Use

w-full max-w-sm

instead of fixed widths.

  1. Certificate column

Use fixed width.

Image

w - 20;
h - 20;
object - cover;
  1. Mobile

Only table scrolls.

Entire page must never scroll horizontally.

  1. Desktop

Table fits inside content container.

  1. Audit all pages using reusable DataTable components.

Files likely involved:

  • src/components/data-table/*
  • src/components/ui/table.tsx
  • src/features/training-records/*
  • src/features/pending-review/*
  • src/features/users/*
  • src/features/employee-directory/*
  • src/features/reports/*
  • src/components/layout/page-container.tsx

Output Review:

docs/sprint-6-12-1-responsive-datatable-review.md

Include:

  • Pages checked
  • Files changed
  • Responsive fixes
  • Overflow fixes
  • Manual regression checklist

Return complete code changes.