diff --git a/src/components/MiniOscilloscope.tsx b/src/components/MiniOscilloscope.tsx index 2333b5c..d19ef0c 100644 --- a/src/components/MiniOscilloscope.tsx +++ b/src/components/MiniOscilloscope.tsx @@ -157,7 +157,7 @@ export function MiniOscilloscope() { return (
diff --git a/src/components/Oscilloscope.tsx b/src/components/Oscilloscope.tsx index d60afde..3783fc5 100644 --- a/src/components/Oscilloscope.tsx +++ b/src/components/Oscilloscope.tsx @@ -247,7 +247,7 @@ export function Oscilloscope() { const canGenerate = audioData !== null && originalFile !== null && !isExporting && !isLoading; return ( -
+
{/* Header */}

@@ -258,130 +258,135 @@ export function Oscilloscope() {

- {/* Controls Row */} -
- {/* Left Column: Audio Input */} -
+ {/* Audio Input Row */} +
+
- - {/* Microphone Toggle */} -
- - - {isMicActive && ( -
-
- Real-time input active -
- -
- )} -
- {/* Right Column: Control Panel */} - -
+ {/* Microphone Toggle */} +
+ - {/* Oscilloscope Display */} -
- { - setIsPlaying(false); - setCurrentTime(0); - setSeekPosition(0); - }} - onSeek={handleSeek} - liveSettings={liveSettings} - /> - - {/* Audio Playback Controls */} - {audioData && originalFile && ( -
- {/* Play/Pause and Time Display */} + {isMicActive && (
+
+ Real-time input active +
- - - {formatTime(currentTime)} / {formatTime(audioData.duration)} - - - {/* Progress Bar */} -
- handleSeek(value[0] / 100)} - max={100} - step={0.1} - className="cursor-pointer" - /> +
+ )} +
+
+ + {/* Main Content: Display + Controls Side by Side */} +
+ {/* Oscilloscope Display */} +
+ { + setIsPlaying(false); + setCurrentTime(0); + setSeekPosition(0); + }} + onSeek={handleSeek} + liveSettings={liveSettings} + /> + + {/* Audio Playback Controls */} + {audioData && originalFile && ( +
+ {/* Play/Pause and Time Display */} +
+ + + + {formatTime(currentTime)} / {formatTime(audioData.duration)} + + + {/* Progress Bar */} +
+ handleSeek(value[0] / 100)} + max={100} + step={0.1} + className="cursor-pointer" + /> +
-
- )} + )} +
+ + {/* Control Panel */} +
+ +
+ {/* Microphone Calibration */} {showMicCalibration && isMicActive && (