Skip to content

Commit f2238c8

Browse files
fix: remove unused isMobile from PlaybackDock
1 parent a24596e commit f2238c8

4 files changed

Lines changed: 9 additions & 7 deletions

File tree

src/App.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,6 @@ export default function App() {
656656
blurMode={blurMode}
657657
onBlurModeToggle={handleBlurModeToggle}
658658
onOpenDrawer={() => setIsDrawerOpen(true)}
659-
isMobile={isMobile}
660659
/>
661660
)}
662661

src/components/PlaybackDock.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ interface PlaybackDockProps {
2525
blurMode: boolean;
2626
onBlurModeToggle: () => void;
2727
onOpenDrawer: () => void;
28-
isMobile: boolean;
2928
}
3029

3130
const SPEED_PRESETS = [0.5, 0.75, 1, 1.25, 1.5, 2, 2.5, 3];
@@ -45,7 +44,6 @@ export default function PlaybackDock({
4544
blurMode,
4645
onBlurModeToggle,
4746
onOpenDrawer,
48-
isMobile,
4947
}: PlaybackDockProps) {
5048
const isPlaying = status === 'playing';
5149
const isPaused = status === 'paused';
@@ -326,9 +324,8 @@ export default function PlaybackDock({
326324

327325
{/* Focus mode toggle — Hide on mobile/tablet */}
328326
<div
329-
className="tooltip-wrapper"
327+
className="tooltip-wrapper mobile-hide-1280"
330328
data-tooltip={blurMode ? 'Focus: On' : 'Focus: Off'}
331-
style={{ display: isMobile ? 'none' : 'block' }}
332329
>
333330
<button
334331
onClick={onBlurModeToggle}

src/components/VoicePicker.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export default function VoicePicker({
9595
? {
9696
position: 'fixed',
9797
inset: 0,
98-
zIndex: 60, // Higher than ControlsPanel (50)
98+
zIndex: 70, // Higher than ControlsPanel (50)
9999
display: 'flex',
100100
flexDirection: 'column',
101101
backgroundColor: 'var(--bg-secondary)',
@@ -107,7 +107,7 @@ export default function VoicePicker({
107107
right: 0,
108108
bottom: 0,
109109
width: '340px',
110-
zIndex: 30,
110+
zIndex: 70, // Higher than ControlsPanel (50)
111111
display: 'flex',
112112
flexDirection: 'column',
113113
backgroundColor: 'var(--bg-secondary)',

src/index.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -763,6 +763,12 @@ input[type="number"] {
763763
}
764764

765765
/* ---------- Responsive ---------- */
766+
@media (max-width: 1280px) {
767+
.mobile-hide-1280 {
768+
display: none !important;
769+
}
770+
}
771+
766772
@media (max-width: 768px) {
767773
.btn-icon {
768774
width: 36px;

0 commit comments

Comments
 (0)