From 13b0c7c8164de2a75bccee51d6c7f6ace881d7e9 Mon Sep 17 00:00:00 2001 From: Gerome Matilla Date: Sat, 6 Jun 2020 16:39:35 +0800 Subject: [PATCH] suggestion css update: hide suggestions if theres no space left --- css/auto-suggestion.css | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/css/auto-suggestion.css b/css/auto-suggestion.css index 35d030a..f600d92 100644 --- a/css/auto-suggestion.css +++ b/css/auto-suggestion.css @@ -88,7 +88,7 @@ background: var(--base-active-bg); } -@media screen and (max-height: 539px) { +@media screen and (max-height: 539px) and (min-height: 341px) { #suggestions { height: auto; @@ -97,7 +97,7 @@ /*The Li*/ #phrase { - /*Always stack and center horizontally*/ + /*Always stack and center horizontally*/ display: inline-block !important; width: auto !important; text-align: center !important; @@ -107,4 +107,12 @@ padding: 0; width: 20px; } +} + +@media screen and (max-height: 340px) { + + #suggestionsContainer { + opacity: 0 !important; + } + } \ No newline at end of file