From 43c1f70380ba642648b4c416f1b1536d05676318 Mon Sep 17 00:00:00 2001 From: geoffrey45 Date: Fri, 10 Dec 2021 16:10:06 +0300 Subject: [PATCH] implement wheel scroll on featured artists. add next-prev buttons too --- src/App.vue | 48 +------ src/assets/css/global.scss | 2 +- src/assets/icons/right-arrow.svg | 3 + src/components/LeftSidebar/Navigation.vue | 21 ++- src/components/LeftSidebar/PinnedStuff.vue | 2 - .../PlaylistView/FeaturedArtists.vue | 130 ++++++++++++++---- src/components/PlaylistView/Header.vue | 4 +- 7 files changed, 129 insertions(+), 81 deletions(-) create mode 100644 src/assets/icons/right-arrow.svg diff --git a/src/App.vue b/src/App.vue index c5a01c05..993f3f43 100644 --- a/src/App.vue +++ b/src/App.vue @@ -10,12 +10,6 @@ -
-
- - Settings -
-
@@ -114,15 +108,6 @@ export default { animation-iteration-count: 1; } -.nav-container .in { - display: flex; - align-items: center; -} - -.collapsed .in { - flex-direction: column; -} - .l-sidebar { position: relative; } @@ -139,40 +124,9 @@ export default { cursor: pointer; } -.l-container #settings-button { - position: absolute; - bottom: 0; - display: flex; - height: 50px; - width: 100%; - cursor: pointer; - border-radius: 0 0 $small $small; - border-top: solid .1rem $seperator -} - -#settings-button .in { - display: flex; - align-items: center; - justify-content: center; -} - -.l-container #settings-button #settings-icon { - margin-left: 1.5rem; - margin-right: 0.25rem; - width: 1.5rem; - height: 1.5rem; - background-image: url(./assets/icons/settings.svg); -} - -.collapsed #settings-button #settings-icon { - margin-right: 0; -} - -.collapsed #settings-button #text { - display: none; -} .m-np { position: absolute; bottom: 0; } + diff --git a/src/assets/css/global.scss b/src/assets/css/global.scss index cc6b1840..48d448f1 100644 --- a/src/assets/css/global.scss +++ b/src/assets/css/global.scss @@ -79,7 +79,7 @@ a { } .l-sidebar { - width: 250px; + width: 15em; grid-area: l-sidebar; padding-top: 0.5rem; margin: 0.5rem 0 0.5rem 0.5rem; diff --git a/src/assets/icons/right-arrow.svg b/src/assets/icons/right-arrow.svg new file mode 100644 index 00000000..b23b235c --- /dev/null +++ b/src/assets/icons/right-arrow.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/components/LeftSidebar/Navigation.vue b/src/components/LeftSidebar/Navigation.vue index af116c96..bd5fd9e6 100644 --- a/src/components/LeftSidebar/Navigation.vue +++ b/src/components/LeftSidebar/Navigation.vue @@ -53,6 +53,15 @@
+
+ + + @@ -65,7 +74,7 @@ export default { -