From af748158aaa4b874fd1add287ce3a87ad1102ef7 Mon Sep 17 00:00:00 2001 From: David Cook Date: Wed, 28 Feb 2024 17:28:32 +1100 Subject: [PATCH] Hide chevron until hover to allow a bit more space for text --- app/webpacker/css/admin_v3/components/tom_select.scss | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/app/webpacker/css/admin_v3/components/tom_select.scss b/app/webpacker/css/admin_v3/components/tom_select.scss index f323b8818a..f63b63898d 100644 --- a/app/webpacker/css/admin_v3/components/tom_select.scss +++ b/app/webpacker/css/admin_v3/components/tom_select.scss @@ -167,6 +167,7 @@ background-color: $color-body-bg; &::after { + display: none; // hide until hover top: 0.8em; right: 1em; font-size: 0.75em; @@ -174,6 +175,16 @@ .item { margin-top: 0; + margin-right: 0; // full width until hover + } + + &:hover { + &::after { + display: block; + } + .item { + margin-right: 1em; + } } } }