From 401162882e8ff8248634e77192a228caca90cab1 Mon Sep 17 00:00:00 2001 From: jeffvli Date: Fri, 24 Sep 2021 00:30:26 -0700 Subject: [PATCH] Update sidebar styling - Remove dropdown - Add y-overflow scrolling with hidden scrollbar - Reorder playlists/favorites --- src/components/layout/Sidebar.tsx | 51 ++++++++++++++++++------------- src/components/layout/styled.tsx | 6 ++++ 2 files changed, 36 insertions(+), 21 deletions(-) diff --git a/src/components/layout/Sidebar.tsx b/src/components/layout/Sidebar.tsx index 9d88a8d..9697b32 100644 --- a/src/components/layout/Sidebar.tsx +++ b/src/components/layout/Sidebar.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { Sidenav, Nav, Icon, Dropdown } from 'rsuite'; +import { Sidenav, Nav, Icon } from 'rsuite'; import { FixedSidebar } from './styled'; const Sidebar = ({ @@ -44,6 +44,14 @@ const Sidebar = ({ > Now Playing + } + onSelect={handleSidebarSelect} + disabled={disableSidebar} + > + Playlists + } @@ -53,12 +61,28 @@ const Sidebar = ({ Favorites } + eventKey="albums" + icon={} onSelect={handleSidebarSelect} disabled={disableSidebar} > - Playlists + Albums + + } + onSelect={handleSidebarSelect} + disabled={disableSidebar} + > + Artists + + } + onSelect={handleSidebarSelect} + disabled={disableSidebar} + > + Genres Folders - } - > - - Albums - - - Artists - - - Genres - - + +