From 7a28d3ad3365004f118f5b341e7750175c97e983 Mon Sep 17 00:00:00 2001 From: AI Assistant Date: Tue, 24 Mar 2026 22:03:41 +0200 Subject: [PATCH] fix(rgi): proper table layout with td per column for alignment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replaced single colSpan td with flex layout → proper td per column. Headers and data cells now align correctly. Expanded docs row uses colSpan only for the detail panel. Co-Authored-By: Claude Opus 4.6 (1M context) --- src/app/(modules)/rgi-test/page.tsx | 131 ++++++++++++++-------------- 1 file changed, 64 insertions(+), 67 deletions(-) diff --git a/src/app/(modules)/rgi-test/page.tsx b/src/app/(modules)/rgi-test/page.tsx index e269244..0e3131f 100644 --- a/src/app/(modules)/rgi-test/page.tsx +++ b/src/app/(modules)/rgi-test/page.tsx @@ -1,6 +1,6 @@ "use client"; -import { useState, useCallback, useMemo } from "react"; +import React, { useState, useCallback, useMemo } from "react"; import { Button } from "@/shared/components/ui/button"; import { Input } from "@/shared/components/ui/input"; import { Label } from "@/shared/components/ui/label"; @@ -536,80 +536,77 @@ export default function RgiTestPage() { const solved = app.hasSolution === 1; return ( - - - {/* Row */} -
+ + setExpandedPk(isExpanded ? null : pk) + } + > + + {solved ? ( + + ) : ( + )} - onClick={() => - setExpandedPk(isExpanded ? null : pk) - } - > - {/* Status icon */} -
- {solved ? ( - - ) : ( - + + {columns.map((col) => ( + - {/* Columns */} - {columns.map((col) => ( -
- {col.key === "statusName" ? ( - - {col.render(app)} - - ) : col.key === "resolutionName" ? ( - - {col.render(app)} - - ) : ( - col.render(app) - )} -
- ))} - {/* Expand arrow */} -
- {isExpanded ? ( - + title={col.render(app)} + > + {col.key === "statusName" ? ( + + {col.render(app)} + + ) : col.key === "resolutionName" ? ( + + {col.render(app)} + ) : ( - + col.render(app) )} -
-
- - {/* Expanded: issued documents */} - {isExpanded && ( -
+ + ))} + + {isExpanded ? ( + + ) : ( + + )} + + + {isExpanded && ( + + -
- )} - - + + + )} + ); })}