From 9310382436fe8719a69b5b1276c332f520683a29 Mon Sep 17 00:00:00 2001 From: geoffrey45 Date: Thu, 6 Jan 2022 20:40:23 +0300 Subject: [PATCH] client: remove search box in folder view - add working ctrl f listener --- Pipfile | 11 ---- src/App.vue | 2 - src/assets/css/global.scss | 18 ++++-- src/components/FolderView/SearchBox.vue | 86 ++++++++++++------------- src/components/FolderView/SongList.vue | 4 +- src/components/RightSideBar/UpNext.vue | 33 ++++++++-- src/components/Search.vue | 45 +++++++------ src/composables/perks.js | 10 +-- src/views/FolderView.vue | 11 ++-- 9 files changed, 116 insertions(+), 104 deletions(-) delete mode 100644 Pipfile diff --git a/Pipfile b/Pipfile deleted file mode 100644 index 5d44a48..0000000 --- a/Pipfile +++ /dev/null @@ -1,11 +0,0 @@ -[[source]] -url = "https://pypi.python.org/simple" -verify_ssl = true -name = "pypi" - -[packages] - -[dev-packages] - -[requires] -python_version = "3.8" diff --git a/src/App.vue b/src/App.vue index aa51e92..e64d427 100644 --- a/src/App.vue +++ b/src/App.vue @@ -70,12 +70,10 @@ export default { const expandQueue = () => { up_next.value = !up_next.value; - search.value = false; }; const expandSearch = () => { search.value = true; - up_next.value = false; }; const collapseSearch = () => { diff --git a/src/assets/css/global.scss b/src/assets/css/global.scss index 63b4be7..25d6ac3 100644 --- a/src/assets/css/global.scss +++ b/src/assets/css/global.scss @@ -4,7 +4,6 @@ } * { - user-select: none; box-sizing: border-box; } @@ -51,6 +50,17 @@ a { display: none; } +button { + border: none; + color: inherit; + font-size: 1rem; + cursor: pointer; + + &:hover { + background-color: rgb(158, 58, 58) !important; + } +} + .l-container { display: grid; grid-template-columns: min-content 4fr min-content; @@ -91,7 +101,6 @@ a { transition: all 0.3s ease; } - .ellip { display: -webkit-box; -webkit-line-clamp: 1; @@ -172,7 +181,7 @@ a { /* Handle on hover */ ::-webkit-scrollbar-thumb:hover { - background: rgb(163, 163, 163); + background: $blue; } @-webkit-keyframes similarAlbums { @@ -237,5 +246,4 @@ a { .not_active { background-image: url(../../assets/icons/playing.webp); transition: all 0.3s ease-in-out; - -} \ No newline at end of file +} diff --git a/src/components/FolderView/SearchBox.vue b/src/components/FolderView/SearchBox.vue index 4ea0a49..3f528f6 100644 --- a/src/components/FolderView/SearchBox.vue +++ b/src/components/FolderView/SearchBox.vue @@ -1,13 +1,13 @@