mirror of
https://github.com/9x/sheetmusictrainer.git
synced 2026-11-03 22:03:54 +01:00
Footer tools stacked in all modes; fix silent phrase-mode metronome
Layout: tuner + metronome now stack vertically everywhere (was phrase-only). Phrase metronome bug: clicks were gated on rhythm.active, but phrase mode has no on/off switch (the sync checkbox replaces it) and the default is active:false — so a synced run stayed silent with no in-mode remedy. Now: phrase mode is always armed (sync checkbox = free vs synced, sound checkbox = clicks), and phrase clickSound reads rhythm.sound only. Single-note modes keep the rhythm.active on/off semantics.
This commit is contained in:
@@ -68,8 +68,8 @@ export const Controls: React.FC<ControlsProps> = ({ currentPitch }) => {
|
||||
)}
|
||||
{shouldShowFilters && <TargetNoteControls />}
|
||||
|
||||
{/* Bottom Section: Tools Grid (2 Columns now) */}
|
||||
<div className="tools-grid" style={inPhraseMode ? { gridTemplateColumns: '1fr' } : undefined}>
|
||||
{/* Bottom Section: Tools Grid (stacked in all modes) */}
|
||||
<div className="tools-grid" style={{ gridTemplateColumns: '1fr' }}>
|
||||
{/* Tool 1: Tuner */}
|
||||
<div style={{ display: 'flex', flexDirection: 'column', gap: '8px', border: '1px solid rgba(128,128,128,0.2)', padding: '12px', borderRadius: '8px' }}>
|
||||
<div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between' }}>
|
||||
|
||||
Reference in New Issue
Block a user