From e59a48b6c68f19d6ddb671eb5ec3295a6dcd4c7e Mon Sep 17 00:00:00 2001 From: lurunze1226 Date: Thu, 7 Dec 2023 21:00:02 +0800 Subject: [PATCH] =?UTF-8?q?styles:=20InputTag=E4=B8=8B=E6=8B=89=E6=B5=AE?= =?UTF-8?q?=E5=B1=82=E6=B7=BB=E5=8A=A0=E6=9C=80=E5=A4=A7=E9=AB=98=E5=BA=A6?= =?UTF-8?q?=E9=81=BF=E5=85=8D=E8=B6=85=E5=87=BA=E5=B1=8F=E5=B9=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/amis-ui/scss/_components.scss | 2 ++ packages/amis-ui/scss/components/form/_tag.scss | 3 +++ 2 files changed, 5 insertions(+) diff --git a/packages/amis-ui/scss/_components.scss b/packages/amis-ui/scss/_components.scss index a2445e723..a68473ce9 100644 --- a/packages/amis-ui/scss/_components.scss +++ b/packages/amis-ui/scss/_components.scss @@ -3798,6 +3798,8 @@ --inputTag-option-bg-color: var(--colors-neutral-fill-11); --inputTag-option-hover-color: var(--colors-brand-5); --inputTag-option-hover-bg-color: var(--colors-brand-10); + --inputTag-popover-maxHeight: 300px; + --fieldSet-legend-height: var(--sizes-size-9); --fieldSet-legend-color: var(--colors-neutral-text-2); diff --git a/packages/amis-ui/scss/components/form/_tag.scss b/packages/amis-ui/scss/components/form/_tag.scss index 7f72a0a2e..42e05a512 100644 --- a/packages/amis-ui/scss/components/form/_tag.scss +++ b/packages/amis-ui/scss/components/form/_tag.scss @@ -123,6 +123,9 @@ .#{$ns}ListMenu { padding: px2rem(4px) 0; + max-height: var(--inputTag-popover-maxHeight); + overflow: auto; + user-select: none; } .#{$ns}ListMenu-item {