Effort per set: RIR or RPE, whichever scale you think in
The RIR column becomes a three-way setting (Off / RIR / RPE). Both scales measure the same judgement from opposite ends — RPE 8 is RIR 2 — so they share one column and one stepper, but keep their own field on the set. A set is never silently rewritten into the other scale: switching the setting changes what new sets ask for, and old sets still read back with the scale they were logged with. Profiles carrying the old showRir boolean keep their column (effortOf falls back to it until the new setting is chosen), so a backup or another device that still has the flag does not lose the column. The steppers now know the scale: the first + lands on a typical working set (RIR 2 / RPE 8) instead of the end of the scale, and typed values are capped at 10 — there is no RPE 12.
This commit is contained in:
1 parent
fa978a1bb4
commit
4e27461b7e
17 files changed
+210
-51
No files matched your search
+18
-9
@@ -236,6 +236,15 @@ h4.sec{
|
||||
.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}
|
||||
.lrow.danger,.lrow.danger .lrow-t{color:var(--red)}
|
||||
/* an (i) next to 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
|
||||
negative margin keeps it from making the row taller. Sits after the control so a long
|
||||
translation wrapping the title never pushes it around. */
|
||||
.helpbtn{
|
||||
color:var(--label-3);font-size:16px;background:none;line-height:0;flex:none;
|
||||
margin:-11px -4px -11px 0;padding:11px 4px;
|
||||
}
|
||||
.helpbtn:active{color:var(--label)}
|
||||
|
||||
/* -------------------------------------------------------------- buttons -- */
|
||||
.btn{
|
||||
@@ -539,7 +548,7 @@ h4.sec{
|
||||
.sethead .n-sp{width:24px;flex:none}
|
||||
.sethead .w-sp{flex:1.4;text-align:center}
|
||||
.sethead .r-sp{flex:1;text-align:center}
|
||||
.sethead .rir-sp{text-align:center}
|
||||
.sethead .eff-sp{text-align:center}
|
||||
.sethead .ck-sp{width:30px;flex:none}
|
||||
.setrow{display:flex;align-items:center;gap:8px;padding:7px 0;position:relative}
|
||||
.setrow+.setrow::before{
|
||||
@@ -552,20 +561,20 @@ h4.sec{
|
||||
}
|
||||
.setrow .stp.w{flex:1.4;min-width:0}
|
||||
.setrow .stp.r{flex:1;min-width:0}
|
||||
.setrow .stp.rir{flex:1.1;min-width:0}
|
||||
.setrow .stp.eff{flex:1.1;min-width:0}
|
||||
.setrow .stp button{width:32px;height:40px}
|
||||
/* a 3rd stepper (RIR) needs narrower buttons and a tighter row gap to fit next to weight+reps
|
||||
on narrow phones, same technique as the exercise-config sheet's three-steppers-in-a-row
|
||||
(.cfgrow below) — RIR's own value is short ("1.5") so its buttons shrink the most, weight/reps
|
||||
just enough to make room since their values ("82.5", "12") need more of what's left.
|
||||
The header shares the numbers so its labels stay centred over the steppers they name. */
|
||||
.setrow.rir3,.sethead.rir3{gap:6px}
|
||||
.setrow.rir3 .stp.w,.sethead.rir3 .w-sp{flex:1.2}
|
||||
.setrow.rir3 .stp.r,.sethead.rir3 .r-sp{flex:1}
|
||||
.setrow.rir3 .stp.rir,.sethead.rir3 .rir-sp{flex:.85}
|
||||
.setrow.rir3 .stp button{width:23px}
|
||||
.setrow.rir3 .stp.rir button{width:20px}
|
||||
.setrow.rir3 .stp .num{font-size:14px}
|
||||
.setrow.eff3,.sethead.eff3{gap:6px}
|
||||
.setrow.eff3 .stp.w,.sethead.eff3 .w-sp{flex:1.2}
|
||||
.setrow.eff3 .stp.r,.sethead.eff3 .r-sp{flex:1}
|
||||
.setrow.eff3 .stp.eff,.sethead.eff3 .eff-sp{flex:.85}
|
||||
.setrow.eff3 .stp button{width:23px}
|
||||
.setrow.eff3 .stp.eff button{width:20px}
|
||||
.setrow.eff3 .stp .num{font-size:14px}
|
||||
.setrow.done .n{background:var(--acc);color:var(--on-acc)}
|
||||
.setrow.done{opacity:.45}
|
||||
/* why the next target is what it is (issue #17) */
|
||||
|
||||
Reference in new issue
Block a user