Skip to content

Open-source gym & body-weight tracker, now in the App Store (iPhone + Apple Watch) and as an Android APK. Plan routines, log workouts, see which muscles are trained, import from Strong/Hevy/FitNotes. Self-host it or use it on the phone alone.

Segmented rows: every segment as wide as the widest label, so Compact and Versteckt get their padding

Duarte Santosf288bc60af39
diff --git a/frontend/src/index.css b/frontend/src/index.css
index 2a33dd8a6..d94fda310 100644
--- a/frontend/src/index.css
+++ b/frontend/src/index.css
@@ -692,7 +692,14 @@ body.chips-dragging *{cursor:inherit}
.lrow:has(.seg-inline){flex-wrap:wrap}
.lrow:has(.seg-inline) .lrow-m{min-width:min(150px,100%)}
.seg-range{margin-bottom:10px}
-.seg-inline button{padding:5px 10px;font-size:13px;min-height:28px}
+/* Every segment as wide as the widest label (QA 10-05: with flex:1 1 0 the track was sized by the
+ labels' sum but split evenly, so "Compact" / "Versteckt" got less than its own width and
+ touched the segment's edge). A grid of equal 1fr columns sizes each to the widest one, so the
+ thumb (100%/n) still lines up; the sliding thumb is absolutely positioned with no grid
+ placement, so its box is the track's padding box, as in the flex version. */
+.seg-inline{display:grid;grid-auto-flow:column;grid-auto-columns:1fr}
+.seg-inline button{padding:5px 12px;font-size:13px;min-height:28px}
+.seg-inline button span{white-space:nowrap}
.seg-inline button .icn{font-size:14px}
/* native time input, restyled to sit in a row like a value label */