From bdfbb59d76519927737a15949c927ee289aec04e Mon Sep 17 00:00:00 2001 From: geoffrey45 Date: Mon, 31 Jan 2022 09:38:14 +0300 Subject: [PATCH] Introduce tabs to right sidebar - new icons - rename upnext.vue to queue.vue - other tiny changes --- src/assets/css/Search/Search.scss | 32 ++-- src/assets/icons/_search.svg | 1 + src/assets/icons/dashboard.svg | 6 + src/assets/icons/queue.svg | 6 + src/assets/icons/search.svg | 6 +- src/components/RightSideBar/Home/Main.vue | 14 ++ src/components/RightSideBar/Main.vue | 95 ++++++++---- src/components/RightSideBar/Queue.vue | 144 ++++++++++++++++++ src/components/RightSideBar/Tabs.vue | 63 ++++++++ src/components/RightSideBar/UpNext.vue | 169 ---------------------- src/components/Search.vue | 56 +++---- src/components/Search/AlbumGrid.vue | 1 - src/components/Search/ArtistGrid.vue | 2 +- src/components/Search/Filters.vue | 3 +- src/components/Search/LoadMore.vue | 2 +- src/components/Search/Loader.vue | 10 +- src/components/Search/Options.vue | 3 +- src/components/Search/TracksGrid.vue | 1 - src/components/shared/TrackItem.vue | 4 + 19 files changed, 363 insertions(+), 255 deletions(-) create mode 100644 src/assets/icons/_search.svg create mode 100644 src/assets/icons/dashboard.svg create mode 100644 src/assets/icons/queue.svg create mode 100644 src/components/RightSideBar/Home/Main.vue create mode 100644 src/components/RightSideBar/Queue.vue create mode 100644 src/components/RightSideBar/Tabs.vue delete mode 100644 src/components/RightSideBar/UpNext.vue diff --git a/src/assets/css/Search/Search.scss b/src/assets/css/Search/Search.scss index d3609d30..797ec0a5 100644 --- a/src/assets/css/Search/Search.scss +++ b/src/assets/css/Search/Search.scss @@ -1,21 +1,14 @@ -.right-search .v0 { - max-height: 0em; - transition: max-height 0.5s ease; -} - -.right-search .v1 { - max-height: 25rem; - transition: max-height 0.5s ease; -} - .right-search { position: relative; border-radius: $small; - margin: 0.5rem 0 0 0; - padding: 1rem $small 0 0; background-color: #03000eab; + display: grid; + grid-template-rows: min-content 1fr; overflow: hidden; width: auto; + height: 100%; + padding: $small $small 0 $small; + // margin: $small 0 $small 0; .no-res { text-align: center; @@ -79,12 +72,11 @@ } .right-search .scrollable { - width: 100%; - height: 26rem; overflow-y: auto; - scroll-behavior: smooth; - padding: 0 $small 0 0; - margin-bottom: 0.5rem; + + &::-webkit-scrollbar { + display: none; + } } .right-search { @@ -94,7 +86,7 @@ position: relative; input { - width: calc(100% - 6rem); + width: calc(100% - 2.5rem); border: none; line-height: 2.5rem; background-color: transparent; @@ -102,7 +94,7 @@ font-size: 1rem; outline: none; transition: all 0.5s ease; - padding-left: $small; + padding-left: 0.4rem; &:focus { transition: all 0.5s ease; @@ -116,5 +108,3 @@ } } } - - diff --git a/src/assets/icons/_search.svg b/src/assets/icons/_search.svg new file mode 100644 index 00000000..7b63261b --- /dev/null +++ b/src/assets/icons/_search.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/icons/dashboard.svg b/src/assets/icons/dashboard.svg new file mode 100644 index 00000000..4dfb2c80 --- /dev/null +++ b/src/assets/icons/dashboard.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/icons/queue.svg b/src/assets/icons/queue.svg new file mode 100644 index 00000000..a0dd923e --- /dev/null +++ b/src/assets/icons/queue.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/icons/search.svg b/src/assets/icons/search.svg index 7b63261b..079bb6a4 100644 --- a/src/assets/icons/search.svg +++ b/src/assets/icons/search.svg @@ -1 +1,5 @@ - \ No newline at end of file + + + + + diff --git a/src/components/RightSideBar/Home/Main.vue b/src/components/RightSideBar/Home/Main.vue new file mode 100644 index 00000000..9529aa67 --- /dev/null +++ b/src/components/RightSideBar/Home/Main.vue @@ -0,0 +1,14 @@ + + + diff --git a/src/components/RightSideBar/Main.vue b/src/components/RightSideBar/Main.vue index e8d9d715..0a35b6b2 100644 --- a/src/components/RightSideBar/Main.vue +++ b/src/components/RightSideBar/Main.vue @@ -1,20 +1,25 @@ @@ -22,8 +27,11 @@ diff --git a/src/components/RightSideBar/Queue.vue b/src/components/RightSideBar/Queue.vue new file mode 100644 index 00000000..255cb0d6 --- /dev/null +++ b/src/components/RightSideBar/Queue.vue @@ -0,0 +1,144 @@ + + + + + diff --git a/src/components/RightSideBar/Tabs.vue b/src/components/RightSideBar/Tabs.vue new file mode 100644 index 00000000..236db188 --- /dev/null +++ b/src/components/RightSideBar/Tabs.vue @@ -0,0 +1,63 @@ + + + + + diff --git a/src/components/RightSideBar/UpNext.vue b/src/components/RightSideBar/UpNext.vue deleted file mode 100644 index 9450c767..00000000 --- a/src/components/RightSideBar/UpNext.vue +++ /dev/null @@ -1,169 +0,0 @@ - - - - - diff --git a/src/components/Search.vue b/src/components/Search.vue index 1733502f..b8e4f8ba 100644 --- a/src/components/Search.vue +++ b/src/components/Search.vue @@ -1,33 +1,35 @@