Skip to content

Commit

Permalink
fix/web/(menu-item): 修复渲染为a标签时没有文本溢出和collapsed时点击范围问题、icon被压缩问题 (#1772)
Browse files Browse the repository at this point in the history
* fix(MenuItem): 修复渲染为a标签时没有文本溢出的问题、collapsed时a标签覆盖范围未铺满按钮的问题

* fix(MenuItem): 文本溢出时icon被压缩大小的问题
  • Loading branch information
boogie-ben authored Apr 23, 2024
1 parent b61adbc commit fc0041c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions style/web/components/menu/_index.less
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ a.@{prefix}-menu__item {
justify-content: center;

.@{prefix}-menu__item-link {
margin-left: 0;
opacity: 0;
content: "";
position: absolute;
Expand Down Expand Up @@ -369,6 +370,7 @@ a.@{prefix}-menu__item {
.t-icon {
width: 20px;
height: 20px;
flex-shrink: 0;
}

.@{prefix}-fake-arrow {
Expand Down Expand Up @@ -567,6 +569,9 @@ a.@{prefix}-menu__item {

&.@{prefix}-menu__item-link {
color: unset;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;

&::before {
content: "";
Expand Down

0 comments on commit fc0041c

Please sign in to comment.