From f319d66ba8f408c5a96cb7e6f0348f977a0d55a6 Mon Sep 17 00:00:00 2001 From: TallblokeUK Date: Sat, 29 Aug 2026 18:20:11 +0100 Subject: [PATCH] fix: apply the row truncation Screen Option to snippet names The "Truncate long snippet names and descriptions" Screen Option toggles a truncate-row-values class on the list table, but only the description rule was scoped to that class. The name rule applied unconditionally, so snippet names were always clipped to min(15rem, 30vw) whether the option was on or off, and turning it off appeared to do nothing to the Name column. Scope the name rule to the same class, so the option governs both values as its label promises. --- src/css/common/list-table/_layout.scss | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/css/common/list-table/_layout.scss b/src/css/common/list-table/_layout.scss index ef21be7cd..5551e72a9 100644 --- a/src/css/common/list-table/_layout.scss +++ b/src/css/common/list-table/_layout.scss @@ -293,9 +293,11 @@ text-align: start; } - // Snippet names always stay on a single line, truncating gracefully; - // the full name is exposed through the title attribute. - td.column-name > .snippet-name { + // Names and descriptions are both governed by the "Truncate long snippet + // names and descriptions" Screen Option. When it is off, the full name is + // shown; when on, it stays on a single line and the full value remains + // available through the title attribute. + &.truncate-row-values td.column-name > .snippet-name { display: block; max-inline-size: min(15rem, 30vw); white-space: nowrap;