Record screen: show the live HR number on the HR toggle button
The HR toggle (ex-wind button) showed only the heart+pulse icon. Now the current bpm renders on it (onHrUpdate writes #rec-hr-num); it clears when HR is toggled off, leaving just the grey icon.
This commit is contained in:
parent
2d0e51bd8d
commit
553a4fcf80
2 changed files with 7 additions and 2 deletions
|
|
@ -726,9 +726,11 @@ select {
|
|||
.workout-screen .btn-primary, .workout-screen .btn-secondary { margin-top: 8px; width: 100%; }
|
||||
|
||||
/* HR on/off toggle on the record screen (replaces the wind button): grey = off, coloured = on. */
|
||||
.rec-hr-toggle { color: #888; display: inline-flex; align-items: center; justify-content: center; min-width: 46px; padding: 6px 10px; }
|
||||
.rec-hr-toggle { color: #888; display: inline-flex; align-items: center; justify-content: center; gap: 3px; padding: 6px 10px; }
|
||||
.rec-hr-toggle svg { display: block; }
|
||||
.rec-hr-toggle.active { color: #ef5350; background: rgba(239, 83, 80, 0.18); }
|
||||
.rec-hr-num { font-size: 14px; font-weight: 700; min-width: 0; }
|
||||
.rec-hr-num:empty { display: none; }
|
||||
|
||||
/* Progress fill for long-running action buttons: the background fills left-to-right by
|
||||
--pct (0-100%, set from JS). The label stays on top and readable; the unfilled part keeps
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue