From fa67652ba41af86f78ccdd5face647b55664f2d2 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Mon, 20 Aug 2018 09:03:47 +0100 Subject: [PATCH] fix: multiple selection enabled always visible (#30) Although I couldn't reproduce #29, this fixes #29. It now truly hides the box while multiple selection isn't activated. License: MIT Signed-off-by: Henrique Dias --- src/components/files/Listing.vue | 2 +- src/css/listing.css | 15 +++++++++++++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/src/components/files/Listing.vue b/src/components/files/Listing.vue index 1eddbeea..1e2be375 100644 --- a/src/components/files/Listing.vue +++ b/src/components/files/Listing.vue @@ -78,7 +78,7 @@ -
+

{{ $t('files.multipleSelectionEnabled') }}

clear diff --git a/src/css/listing.css b/src/css/listing.css index 02bd8d9c..3c2a6a0f 100644 --- a/src/css/listing.css +++ b/src/css/listing.css @@ -212,6 +212,16 @@ font-weight: bold; } +@keyframes slidein { + from { + bottom: -4em; + } + + to { + bottom: 0; + } +} + #listing #multiple-selection { position: fixed; bottom: -4em; @@ -220,7 +230,7 @@ width: 100%; background-color: #2196f3; height: 4em; - display: flex !important; + display: none; padding: 0.5em 0.5em 0.5em 1em; justify-content: space-between; align-items: center; @@ -228,7 +238,8 @@ } #listing #multiple-selection.active { - bottom: 0; + animation: slidein 0.2s forwards; + display: flex; } #listing #multiple-selection p,