From dd40d3c71864dedd5b20759e76c5b3952dd9318c Mon Sep 17 00:00:00 2001 From: cerrpuffs Date: Wed, 4 Feb 2026 11:52:25 -0600 Subject: [PATCH] feat: Add mobile player UI with lyrics integration - Add new MobilePlayer.vue component with draggable gesture support - Implement lyrics button in NowPlayingInfo with automatic sync - Add close button to lyrics view that reopens mobile player - Fix context menu z-index to appear above mobile player overlay - Standardize padding across all mobile player elements - Add isMobilePlayerOpen reactive state for player visibility control Note for Reviewers: Please test thoroughly as I only tested with a limited library (one album). I did not touch other components intentionally, but there may be unexpected side effects. Feel free to leave comments on this PR or reach out if you find any issues. Thank you for reviewing! --- src/App.vue | 28 +- src/components/BottomBar/Left.vue | 85 ++-- src/components/ContextMenu.vue | 2 +- src/components/MobilePlayer.vue | 494 +++++++++++++++++++ src/components/NowPlaying/Header.vue | 120 ++--- src/components/NowPlaying/NowPlayingInfo.vue | 29 +- src/stores/content-width.ts | 3 + src/views/LyricsView/Head.vue | 36 ++ 8 files changed, 653 insertions(+), 144 deletions(-) create mode 100644 src/components/MobilePlayer.vue diff --git a/src/App.vue b/src/App.vue index 5dc74884..7fe4341f 100644 --- a/src/App.vue +++ b/src/App.vue @@ -20,13 +20,19 @@
- + + + + +
+ + + diff --git a/src/components/ContextMenu.vue b/src/components/ContextMenu.vue index 8d8e5f82..0330a43e 100644 --- a/src/components/ContextMenu.vue +++ b/src/components/ContextMenu.vue @@ -67,7 +67,7 @@ context.$subscribe((mutation, state) => { top: 0; left: 0; width: 13rem; - z-index: 1000 !important; + z-index: 100001 !important; height: min-content; padding: $small; background: $context; diff --git a/src/components/MobilePlayer.vue b/src/components/MobilePlayer.vue new file mode 100644 index 00000000..6957e65b --- /dev/null +++ b/src/components/MobilePlayer.vue @@ -0,0 +1,494 @@ + + + + + diff --git a/src/components/NowPlaying/Header.vue b/src/components/NowPlaying/Header.vue index 829165be..1febdd4f 100644 --- a/src/components/NowPlaying/Header.vue +++ b/src/components/NowPlaying/Header.vue @@ -1,7 +1,9 @@