diff --git a/src/components/MusicPlayer.tsx b/src/components/MusicPlayer.tsx index 70cda77..ad21a89 100644 --- a/src/components/MusicPlayer.tsx +++ b/src/components/MusicPlayer.tsx @@ -16,7 +16,8 @@ import { Shuffle, List, Maximize2, - Minimize2 + Minimize2, + Minus } from 'lucide-react' export function MusicPlayer() { @@ -31,6 +32,7 @@ export function MusicPlayer() { playlist, currentTrackIndex, isMinimized, + isUltraMinimized, showPlaylist, togglePlayPause, stop, @@ -42,6 +44,7 @@ export function MusicPlayer() { setPlayMode, playTrack, toggleMaximize, + toggleUltraMinimize, togglePlaylistVisibility, } = useMusicPlayer() @@ -95,6 +98,28 @@ export function MusicPlayer() { const progressPercentage = (currentTime / duration) * 100 + // Ultra-minimized view - only essential controls + if (isUltraMinimized) { + return ( + +
+ + + + +
+
+ ) + } + if (isMinimized) { return ( @@ -106,7 +131,16 @@ export function MusicPlayer() { alt={currentTrack.title} className="h-full w-full object-cover" /> -
+
+