From dd7bd867bfe9ec8dbfbb8f37ab7aa0311f06e8e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gjermund=20H=C3=B8s=C3=B8ien=20Wiggen?= Date: Tue, 9 Jun 2026 22:01:48 +0200 Subject: [PATCH] fix: remove duplicate column header, portal column picker, clean widths - Remove old fixed column header (was showing above dynamic one) - Column picker now renders via createPortal (no longer behind elements) - Remove forced inline widths on header and rows (flex naturally) - Cleaner column header styling (subtle muted, no forced min-width) Co-Authored-By: Claude Opus 4.8 --- web/src/app/page.tsx | 69 ++++++++++++++++++++------------------------ 1 file changed, 31 insertions(+), 38 deletions(-) diff --git a/web/src/app/page.tsx b/web/src/app/page.tsx index 4201fa4..586f2fb 100644 --- a/web/src/app/page.tsx +++ b/web/src/app/page.tsx @@ -768,33 +768,6 @@ function TicketWorkbenchContent() { > - {colPickerOpen && ( - <> -
setColPickerOpen(false)} /> -
- {availableColumns.map((col) => { - const isVisible = columns.find((c) => c.key === col.key)?.visible ?? col.visible; - return ( - - ); - })} -
- - )}
@@ -893,15 +866,6 @@ function TicketWorkbenchContent() {
-
- Ticket - Subject - Queue - Status - Updated - -
- {filteredTickets.length === 0 ? (
@@ -923,7 +887,6 @@ function TicketWorkbenchContent() { "sticky top-0 z-10 flex border-b border-border bg-muted/70", density === "compact" ? "min-h-8" : "min-h-9" )} - style={{ width: availableColumns.filter((c) => c.visible).reduce((sum, c) => sum + c.width, 96), minWidth: "100%" }} > {availableColumns.filter((c) => c.visible).map((col) => (
c.visible).reduce((sum, c) => sum + c.width, 96) + 36, minWidth: "100%" }} > {/* Checkbox */} e.stopPropagation()}> @@ -1523,6 +1485,37 @@ function TicketWorkbenchContent() { , document.body )} + + {typeof document !== "undefined" && colPickerOpen && createPortal( + <> +
setColPickerOpen(false)} /> +
+ {availableColumns.map((col) => { + const isVisible = columns.find((c) => c.key === col.key)?.visible ?? col.visible; + return ( + + ); + })} +
+ , + document.body + )}
); }