From 739f9bdd3492510b954cb6a96595e383a6fa1883 Mon Sep 17 00:00:00 2001 From: Charlie Park Date: Fri, 20 Nov 2026 13:33:36 -0800 Subject: [PATCH 1/4] fix link text in truncated cells --- app/pages/system/inventory/SledsTab.tsx | 2 +- app/ui/lib/Truncate.tsx | 13 ++++++------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/app/pages/system/inventory/SledsTab.tsx b/app/pages/system/inventory/SledsTab.tsx index 1cde91543..97d56126c 100644 --- a/app/pages/system/inventory/SledsTab.tsx +++ b/app/pages/system/inventory/SledsTab.tsx @@ -44,7 +44,7 @@ const staticCols = [ colHelper.accessor('id', { cell: (info) => ( - + ), }), diff --git a/app/ui/lib/Truncate.tsx b/app/ui/lib/Truncate.tsx index 9940cd3ff..816226822 100644 --- a/app/ui/lib/Truncate.tsx +++ b/app/ui/lib/Truncate.tsx @@ -83,19 +83,18 @@ export const Truncate = ({ {text} ) : ( -
+
{/* invisible copy of the full text keeps the layout width stable, so swapping in the shorter ellipsized text can't shrink the container and trigger another round of truncation */} - + {text} {middleText && ( - + {middleText} )} From 700c46255a943774b346d3e560ba1fedad44c165 Mon Sep 17 00:00:00 2001 From: Charlie Park Date: Fri, 20 Nov 2026 14:09:52 -0800 Subject: [PATCH 2/4] Set an explicit column in place, rather than defaulting to auto --- app/ui/lib/Truncate.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/ui/lib/Truncate.tsx b/app/ui/lib/Truncate.tsx index 816226822..844b8e7dc 100644 --- a/app/ui/lib/Truncate.tsx +++ b/app/ui/lib/Truncate.tsx @@ -83,7 +83,11 @@ export const Truncate = ({ {text}
) : ( -
+
{/* invisible copy of the full text keeps the layout width stable, so swapping in the shorter ellipsized text can't shrink the container and trigger another round of truncation */} From 01db432e3ceb6928f6426c967c926f5e26f9a445 Mon Sep 17 00:00:00 2001 From: Charlie Park Date: Fri, 20 Nov 2026 16:08:16 -0800 Subject: [PATCH 3/4] A simpler approach that doesn't collapse the block --- app/ui/lib/Truncate.tsx | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/app/ui/lib/Truncate.tsx b/app/ui/lib/Truncate.tsx index 844b8e7dc..599dbb20a 100644 --- a/app/ui/lib/Truncate.tsx +++ b/app/ui/lib/Truncate.tsx @@ -83,25 +83,14 @@ export const Truncate = ({ {text}
) : ( -
+
{/* invisible copy of the full text keeps the layout width stable, so swapping in the shorter ellipsized text can't shrink the container and trigger another round of truncation */} - + {text} - {middleText && ( - - {middleText} - - )} + {middleText &&
{middleText}
}
) From 35f15ff3991fe2566b1ba5cf8ce89b3cdac1e1ba Mon Sep 17 00:00:00 2001 From: Charlie Park Date: Fri, 20 Nov 2026 16:14:43 -0800 Subject: [PATCH 4/4] just use a div --- app/ui/lib/Truncate.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/ui/lib/Truncate.tsx b/app/ui/lib/Truncate.tsx index 599dbb20a..a1b8c99eb 100644 --- a/app/ui/lib/Truncate.tsx +++ b/app/ui/lib/Truncate.tsx @@ -87,9 +87,9 @@ export const Truncate = ({ {/* invisible copy of the full text keeps the layout width stable, so swapping in the shorter ellipsized text can't shrink the container and trigger another round of truncation */} - +
{text} - +
{middleText &&
{middleText}
}
)