From 5940eee3a04ba2f8f46c5ffcb1a42824e9f89dbd Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Mon, 20 Jun 2022 13:29:41 +0300 Subject: [PATCH] Fix input options max-height --- css/structure/input.css | 2 +- less/input.less | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/css/structure/input.css b/css/structure/input.css index c6ab97b..893b63c 100644 --- a/css/structure/input.css +++ b/css/structure/input.css @@ -194,7 +194,7 @@ /* Options */ .uk-dropdown.options { - max-height: 216px; /* 34px each line height, 5+5 margin top+bottom, 1+1 border top+bottom */ + max-height: 198px; /* 31px each line height, 5+5 margin top+bottom, 1+1 border top+bottom */ overflow: auto; } diff --git a/less/input.less b/less/input.less index 9663224..3e1f652 100644 --- a/less/input.less +++ b/less/input.less @@ -207,11 +207,6 @@ line-height: 18px; } - & .uk-dropdown.options { - max-height: 216px; /* 34px each line height, 5+5 margin top+bottom, 1+1 border top+bottom */ - overflow: auto; - } - &:not(.focused) > .input-box .input.search { opacity: 0; } @@ -272,3 +267,8 @@ } } +.uk-dropdown.options { + max-height: 198px; /* 31px each line height, 5+5 margin top+bottom, 1+1 border top+bottom */ + overflow: auto; +} +