Minimize the exercise animation during a workout (#12)
Adds a persistent minimize/expand toggle to the workout animation so the
set rows are reachable without scrolling past a full-height GIF. A new
S.gifSize setting ('full' | 'mini') is flipped by the button, saved and
synced like other prefs, and applied across exercises and future
workouts. Tapping the animation still pauses/plays it.
Closes #12
This commit is contained in:
1 parent
785380ab1b
commit
dabffdebc0
17 files changed
+60
-17
No files matched your search
@@ -69,7 +69,7 @@ function ExerciseBlock({ entryIdx, compact, onToggle, onField, onBumpAll, onAddS
|
||||
</div>
|
||||
)
|
||||
return <>
|
||||
<Media ex={ex} key={entry.id} compact={compact} />
|
||||
<Media ex={ex} key={entry.id} compact={compact} minimizable />
|
||||
<div className="row between" style={{ marginBottom: 6 }}>
|
||||
<div style={{ fontSize: compact ? '1.05rem' : '1.2rem', fontWeight: 800, textTransform: 'capitalize', lineHeight: 1.2 }}>{ex.n}</div>
|
||||
<button className="iconbtn" onClick={() => exerciseDetailSheet(ex)}>ℹ️</button>
|
||||
|
||||
Reference in new issue
Block a user