From ea160f5dc047960ab580c49c552c0aec1d117db6 Mon Sep 17 00:00:00 2001 From: Graham Steffaniak Date: Mon, 4 Sep 2023 10:45:18 -0500 Subject: [PATCH] updated --- frontend/src/components/Search.vue | 27 +-- frontend/src/css/mobile.css | 23 +-- frontend/src/views/Layout.vue | 2 +- frontend/src/views/files/Default.vue | 9 +- frontend/src/views/files/Listing.vue | 263 +++++++-------------------- 5 files changed, 87 insertions(+), 237 deletions(-) diff --git a/frontend/src/components/Search.vue b/frontend/src/components/Search.vue index 18d3c592..3f7120a9 100644 --- a/frontend/src/components/Search.vue +++ b/frontend/src/components/Search.vue @@ -143,10 +143,10 @@ } #result-desktop #result-list { - width: 100%; -webkit-transition: width 0.3s ease 0s; transition: width 0.3s ease 0s; - overflow: auto; + max-width: 100%; + width: 30em; padding-top: 0em; border-width: 1px; border-style: solid; @@ -166,12 +166,15 @@ -webkit-box-shadow: 0px 2em 50px 10px rgba(0, 0, 0, 0.3); box-shadow: 0px 2em 50px 10px rgba(0, 0, 0, 0.3); background-color: lightgray; + margin-top: 0; + padding-top: 1em; + overflow: auto; } #result-desktop { animation: SlideDown 0.5s forwards; - border-radius: 1em; - + border-radius: 1m; + overflow: hidden; } #search.active #result-desktop ul li a { @@ -181,6 +184,11 @@ margin-right: .3em; } +#result-list.active { + width: 65em !important; + max-width: 85vw !important; +} + /* Animations */ @keyframes SlideDown { 0% { @@ -196,11 +204,9 @@ /* Search */ #search { - flex-basis: auto; - width: 100%; + min-width: 35em; height: 3em; - display: flex; - flex-direction: column; + display: block; } #search #input { @@ -256,6 +262,7 @@ padding-top: 1em; overflow: hidden; background: white; + display: flex; top: -4em; flex-direction: column; align-items: center; @@ -306,9 +313,7 @@ body.rtl #search #result ul>* { #search.ongoing #renew { display: block; } -#search.active { - width: 80%; -} + #search.active #input { border-bottom-left-radius: 1px; background-color: lightgray; diff --git a/frontend/src/css/mobile.css b/frontend/src/css/mobile.css index f9aa50f4..095dbecc 100644 --- a/frontend/src/css/mobile.css +++ b/frontend/src/css/mobile.css @@ -54,26 +54,16 @@ } #search { min-width: unset; - max-width: 60% - } - - #search .boxes { - text-align: center; - width: 100%; - padding: 1em; - padding-top: 0; - max-width: 30em; - margin:auto; - + max-width: 60%; } #search.active { - min-width: 100%; display: block; position: fixed; top: 0; left: 0; width: 100%; + max-width: 100%; } #search.active #input { @@ -110,15 +100,16 @@ margin-right: 0.3em; user-select: none; } - #result { - overflow:scroll - } + #result-list { width:100%; left: 0; top: 4em; + -webkit-box-direction: normal; + -ms-flex-direction: column; overflow: scroll; - display: contents; + display: flex; + flex-direction: column; } } diff --git a/frontend/src/views/Layout.vue b/frontend/src/views/Layout.vue index cdd308ff..c59a97fc 100644 --- a/frontend/src/views/Layout.vue +++ b/frontend/src/views/Layout.vue @@ -3,7 +3,7 @@
- + diff --git a/frontend/src/views/files/Default.vue b/frontend/src/views/files/Default.vue index 61736c37..5bb7ab8b 100644 --- a/frontend/src/views/files/Default.vue +++ b/frontend/src/views/files/Default.vue @@ -6,13 +6,8 @@ :label="$t('buttons.toggleSidebar')" @action="toggleSidebar()" /> - - + {{ req.name }} + diff --git a/frontend/src/views/files/Listing.vue b/frontend/src/views/files/Listing.vue index 932c6daa..61736c37 100644 --- a/frontend/src/views/files/Listing.vue +++ b/frontend/src/views/files/Listing.vue @@ -1,222 +1,49 @@ + +