From dda6df60b6dbfd61a1bf07eaf9181ae819fa87c6 Mon Sep 17 00:00:00 2001 From: iron <472263356@qq.com> Date: Wed, 9 Jun 2021 20:31:07 +0800 Subject: [PATCH] style: add dropdown max height --- .../static/css/scss/components/_dropdown.scss | 2 ++ 1 file changed, 2 insertions(+) diff --git a/themes/conventional-commits/static/css/scss/components/_dropdown.scss b/themes/conventional-commits/static/css/scss/components/_dropdown.scss index aeb4964..477756d 100644 --- a/themes/conventional-commits/static/css/scss/components/_dropdown.scss +++ b/themes/conventional-commits/static/css/scss/components/_dropdown.scss @@ -51,6 +51,7 @@ &__options { visibility: visible; min-width: 100%; + max-height: 50vh; position: absolute; top: 100%; left: 50%; @@ -59,6 +60,7 @@ background-color: $dropdown-options-background-color; border-radius: $dropdown-border-radius; box-shadow: $shadow-soft; + overflow: auto; animation: hide $dropdown-animation-timing/2 ease forwards; &:before { content: '';