From ae3e130829b298cf34b5afbac422a051e507ef84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E8=B4=A7=E7=88=B1=E5=90=83=E7=99=BD=E8=90=9D?= =?UTF-8?q?=E5=8D=9C?= Date: Sun, 23 Apr 2023 20:51:16 +0800 Subject: [PATCH] fix: popover width on the screen side (#41953) * chore: fix popover width for edge case * chore: fix max-width --- components/popover/style/index.less | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/popover/style/index.less b/components/popover/style/index.less index bf3454db3d..8a82c2e94e 100644 --- a/components/popover/style/index.less +++ b/components/popover/style/index.less @@ -15,6 +15,7 @@ top: 0; left: 0; z-index: @zindex-popover; + max-width: 100%; font-weight: normal; white-space: normal; text-align: left; @@ -85,6 +86,8 @@ } &-inner-content { + width: max-content; + max-width: 100%; padding: @padding-sm @popover-padding-horizontal; color: @popover-color; }