From 0c9e473b68fe45fe8fe03a5e840f4a325af6ba11 Mon Sep 17 00:00:00 2001 From: Duarte Santos Date: Sat, 29 Aug 2026 20:34:59 +0200 Subject: [PATCH] css: cap the list row's value instead of reserving space for it MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit !37 diagnosed this correctly — a long value did squeeze the title to nothing. flex-basis:45% cures that but hands the value 45% of every row, including the Sets/Rest/Reps rows where the value is two characters and the title is long. max-width is the same intent at the right lever: measured, it matches !37 on both long-value cases and keeps the full 328px title on short ones. --- frontend/src/index.css | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/frontend/src/index.css b/frontend/src/index.css index ff0cf21..df34861 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -235,8 +235,12 @@ h4.sec{ .lrow-s{font-size:13px;color:var(--label-2);line-height:1.3} /* flex:none would let a long value ("Follow the routine (Linear progression)") run straight through the title next to it, since the title's column is already free to shrink to nothing. - Letting the value shrink and ellipsise instead keeps the two out of each other's way. */ -.lrow-v{color:var(--label-2);font-size:17px;letter-spacing:-.012em;flex:0 1 45%;min-width:0; + Letting the value shrink and ellipsise instead keeps the two out of each other's way. + The cap is max-width, not flex-basis: .lrow-m is flex:1, so its basis is 0 and it absorbs + none of the shrink — a long value would otherwise take the whole row and squeeze the title + to 21px. A basis of 45% fixes that but reserves the space even for "3", costing the title + 141px on the rows that need it most. A cap does neither. */ +.lrow-v{color:var(--label-2);font-size:17px;letter-spacing:-.012em;flex:0 1 auto;max-width:45%;min-width:0; overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right} .lrow-c{color:var(--label);font-size:15px;flex:none;--icon-stroke:2.4} .lrow-k{color:var(--acc);font-size:17px;flex:none;--icon-stroke:2.4}