From 7a030f2728800bfa57f19bb64ef19fa026b41d85 Mon Sep 17 00:00:00 2001 From: Jens Mohrmann Date: Sun, 20 Sep 2026 00:15:55 +0200 Subject: [PATCH] Single-note modes: switch-style display toggles (like phrase mode) Guitar/Piano and Hint show/hide controls in Learn Notes / Ear Training now use the small switch buttons in a .display-toggles row instead of the big hint-buttons. Play Note / Skip Note stay as action buttons. --- src/components/SingleNoteTrainer.tsx | 77 +++++++++++++++++----------- 1 file changed, 48 insertions(+), 29 deletions(-) diff --git a/src/components/SingleNoteTrainer.tsx b/src/components/SingleNoteTrainer.tsx index 2f896a8..fa90a9a 100644 --- a/src/components/SingleNoteTrainer.tsx +++ b/src/components/SingleNoteTrainer.tsx @@ -149,38 +149,57 @@ export const SingleNoteTrainer = forwardRef - {currentInstrumentDef.showTuning && ( + <> + {/* Display toggles — switch style (like phrase mode): + pure show/hide, no trainer actions. */} +
+ {currentInstrumentDef.showTuning && ( +
+ + + {currentInstrumentDef.id === 'piano' ? 'Piano' : 'Guitar'} + + +
+ )} +
+ + + Hint + + +
+
+ +
- )} - - - -
+ + + )} );