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.

fix: use available width for exercise selector

Manuel1bec57bb3fd2
diff --git a/frontend/src/index.css b/frontend/src/index.css
index ca0528eea..9b199986b 100644
--- a/frontend/src/index.css
+++ b/frontend/src/index.css
@@ -262,7 +262,7 @@ h4.sec{
display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;
}
.lrow.lrow-stack-value .lrow-m{grid-column:1;grid-row:1}
-.lrow.lrow-stack-value .lrow-v{grid-column:1;grid-row:2;text-align:left}
+.lrow.lrow-stack-value .lrow-v{grid-column:1;grid-row:2;width:100%;max-width:none;text-align:left}
.lrow.lrow-stack-value .lrow-c{grid-column:2;grid-row:1 / span 2;align-self:center}
/* an (i) before a row's control: painted small and dim so the control stays the loud thing,
but with a finger-sized target like everything else — the padding is the hit area and the
diff --git a/frontend/src/views/Stats.test.js b/frontend/src/views/Stats.test.js
index be90304cc..c0ce185f7 100644
--- a/frontend/src/views/Stats.test.js
+++ b/frontend/src/views/Stats.test.js
@@ -35,7 +35,8 @@ describe('Stats mixed-entry metric contract', () => {
expect(uiSource).toContain('sheetTitle, stackedValue = false')
expect(uiSource).toContain("className={stackedValue ? 'lrow-stack-value' : ''}")
expect(cssSource).toContain('.lrow.lrow-stack-value .lrow-m{grid-column:1;grid-row:1}')
- expect(cssSource).toContain('.lrow.lrow-stack-value .lrow-v{grid-column:1;grid-row:2;text-align:left}')
+ expect(cssSource).toContain('.lrow.lrow-stack-value .lrow-v{grid-column:1;grid-row:2;width:100%;max-width:none;text-align:left}')
+ expect(cssSource).toContain('flex:0 1 auto;max-width:45%;min-width:0;')
expect(cssSource).toContain('overflow:hidden;text-overflow:ellipsis;white-space:nowrap')
})
})