From fc0041ca123b8e9871dce6a232d094a5af4df7ec Mon Sep 17 00:00:00 2001 From: BoogieBen Date: Tue, 23 Apr 2024 21:23:27 +0800 Subject: [PATCH] =?UTF-8?q?fix/web/(menu-item):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=B8=B2=E6=9F=93=E4=B8=BAa=E6=A0=87=E7=AD=BE=E6=97=B6?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E6=96=87=E6=9C=AC=E6=BA=A2=E5=87=BA=E5=92=8C?= =?UTF-8?q?collapsed=E6=97=B6=E7=82=B9=E5=87=BB=E8=8C=83=E5=9B=B4=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E3=80=81icon=E8=A2=AB=E5=8E=8B=E7=BC=A9=E9=97=AE?= =?UTF-8?q?=E9=A2=98=20(#1772)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(MenuItem): 修复渲染为a标签时没有文本溢出的问题、collapsed时a标签覆盖范围未铺满按钮的问题 * fix(MenuItem): 文本溢出时icon被压缩大小的问题 --- style/web/components/menu/_index.less | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/style/web/components/menu/_index.less b/style/web/components/menu/_index.less index 22b6e25308..d39ece866c 100644 --- a/style/web/components/menu/_index.less +++ b/style/web/components/menu/_index.less @@ -147,6 +147,7 @@ a.@{prefix}-menu__item { justify-content: center; .@{prefix}-menu__item-link { + margin-left: 0; opacity: 0; content: ""; position: absolute; @@ -369,6 +370,7 @@ a.@{prefix}-menu__item { .t-icon { width: 20px; height: 20px; + flex-shrink: 0; } .@{prefix}-fake-arrow { @@ -567,6 +569,9 @@ a.@{prefix}-menu__item { &.@{prefix}-menu__item-link { color: unset; + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; &::before { content: "";