Skip to content

Commit 63673ea

Browse files
authored
fix: fix scrolling header visual broken layout in templates (#449)
- fix scrolling header visual broken layout in templates | Before | After | |--------|--------| | <img width="900" height="140" alt="Screenshot 2026-06-23 at 14 07 46" src="https://github.com/user-attachments/assets/8b68544a-8b4e-4156-b6d7-1e060c4684ef" /> | <img width="484" height="86" alt="Screenshot 2026-06-23 at 14 08 10" src="https://github.com/user-attachments/assets/5e7f74ae-41bc-4ee5-880f-6c8e115a7844" /> | Context: Quick fix to remove customer-facing visual bug Follow-up: Create a unified table hover experience in the design system for both table headers and rows
1 parent 65c00d9 commit 63673ea

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

src/features/dashboard/templates/builds/table.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,10 @@ const BuildsTable = ({
235235
>
236236
<DataTableHeader className="sticky top-0 z-30 bg-bg">
237237
{table.getHeaderGroups().map((headerGroup) => (
238-
<DataTableRow key={headerGroup.id} className="border-b-0">
238+
<DataTableRow
239+
key={headerGroup.id}
240+
className="border-b-0 -mx-2 px-2 w-[calc(100%+16px)]"
241+
>
239242
{headerGroup.headers.map((header) => (
240243
<DataTableHead
241244
key={header.id}

src/features/dashboard/templates/list/table.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,10 @@ export default function TemplatesTable() {
184184
>
185185
<DataTableHeader className="sticky top-0 shadow-xs bg-bg z-30">
186186
{table.getHeaderGroups().map((headerGroup) => (
187-
<DataTableRow key={headerGroup.id} className="border-b-0">
187+
<DataTableRow
188+
key={headerGroup.id}
189+
className="border-b-0 -mx-2 px-2 w-[calc(100%+16px)]"
190+
>
188191
{headerGroup.headers.map((header) => (
189192
<DataTableHead
190193
key={header.id}

0 commit comments

Comments
 (0)