From d8f5c20254e070c5f4dffa13886f9d0689e722eb Mon Sep 17 00:00:00 2001 From: sillyangel Date: Wed, 25 Jun 2025 20:32:27 -0500 Subject: [PATCH] feat: refactor Menu component layout and improve accessibility features --- app/components/menu.tsx | 362 +++++++++++++++++++++------------------- 1 file changed, 186 insertions(+), 176 deletions(-) diff --git a/app/components/menu.tsx b/app/components/menu.tsx index 45eeda1..46e7435 100644 --- a/app/components/menu.tsx +++ b/app/components/menu.tsx @@ -82,184 +82,194 @@ export function Menu({ toggleSidebar, isSidebarVisible, toggleStatusBar, isStatu return ( <> - - - mice - - setOpen(true)}>About Music - - router.push('/settings')}> - Preferences ⌘, - - - - Hide Music ⌘H - - - Hide Others ⇧⌘H - - - - Quit Music ⌘Q - - - -

j

- - File - - - New - - - Playlist ⌘N - - - Playlist from Selection ⇧⌘N - - - Smart Playlist ⌥⌘N - - Playlist Folder - Genius Playlist - - - - Open Stream URL ⌘U - - - Close Window ⌘W - - - - Library - - Update Cloud Library - Update Genius - - Organize Library - Export Library - - Import Playlist - Export Playlist - Show Duplicate Items - - Get Album Artwork - Get Track Names - - - - Import ⌘O - - Burn Playlist to Disc - - - Show in Finder ⇧⌘R{" "} - - Convert - - Page Setup - - Print ⌘P - - - - - Edit - - - Undo ⌘Z - - - Redo ⇧⌘Z - - - - Cut ⌘X - - - Copy ⌘C - - - Paste ⌘V - - - - Select All ⌘A - - - Deselect All ⇧⌘A - - - - Smart Dictation{" "} - - - - - - - - - Emoji & Symbols{" "} - - - - - - - - - - - View - - Show Playing Next - Show Lyrics - - - {isStatusBarVisible ? "Hide Status Bar" : "Show Status Bar"} - - - - {isSidebarVisible ? "Hide Sidebar" : "Show Sidebar"} - ⌘S - - +
+
+ +
+

j

+ + + + mice + + setOpen(true)}>About Music + + router.push('/settings')}> + Preferences ⌘, + + + + Hide Music ⌘H + + + Hide Others ⇧⌘H + + + + Quit Music ⌘Q + + + +

j

+ + File + + + New + + + Playlist ⌘N + + + Playlist from Selection ⇧⌘N + + + Smart Playlist ⌥⌘N + + Playlist Folder + Genius Playlist + + + + Open Stream URL ⌘U + + + Close Window ⌘W + + + + Library + + Update Cloud Library + Update Genius + + Organize Library + Export Library + + Import Playlist + Export Playlist + Show Duplicate Items + + Get Album Artwork + Get Track Names + + + + Import ⌘O + + Burn Playlist to Disc + + + Show in Finder ⇧⌘R{" "} + + Convert + + Page Setup + + Print ⌘P + + + + + Edit + + + Undo ⌘Z + + + Redo ⇧⌘Z + + + + Cut ⌘X + + + Copy ⌘C + + + Paste ⌘V + + + + Select All ⌘A + + + Deselect All ⇧⌘A + + + + Smart Dictation{" "} + + + + + + + + + Emoji & Symbols{" "} + + + + + + + + + + + View + + Show Playing Next + Show Lyrics + + + {isStatusBarVisible ? "Hide Status Bar" : "Show Status Bar"} + + + + {isSidebarVisible ? "Hide Sidebar" : "Show Sidebar"} + ⌘S + + {isFullScreen ? "Exit Full Screen" : "Enter Full Screen"} - - - - Account - - Server Status - {connectionStatus} - - router.push('/settings')}> - Settings - - - -
+ + + + Account + + Server Status + {connectionStatus} + + router.push('/settings')}> + Settings + + + + + +