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..a1b8c99eb 100644 --- a/app/ui/lib/Truncate.tsx +++ b/app/ui/lib/Truncate.tsx @@ -83,22 +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}
}
)