Skip to content

Commit

Permalink
fix(popper): fix tiny-popper's style
Browse files Browse the repository at this point in the history
  • Loading branch information
shenjunjian authored and zzcr committed Nov 8, 2024
1 parent 230d9be commit 1a8cd6f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions packages/theme/src/base/reset.less
Original file line number Diff line number Diff line change
Expand Up @@ -177,24 +177,29 @@
}
}

// 没有箭头的场景, select/ userlink /roles/ dept 等默认距离4 px
.tiny-popper {
&[x-placement^='top'] {
margin-bottom: 4px;
}

&[x-placement^='bottom'] {
margin-top: 4px;
}

&[x-placement^='right'] {
margin-left: 4px;
}

&[x-placement^='left'] {
margin-right: 4px;
}
}


.tiny-popconfirm-popover,
.tiny-tooltip__popper {
// 有箭头的场景,统一规范所有样式
.tiny-popconfirm-popover:has(.popper__arrow),
.tiny-popper:has(.popper__arrow),
.tiny-tooltip__popper:has(.popper__arrow) {
.popper__arrow {
position: absolute;
display: block;
Expand Down

0 comments on commit 1a8cd6f

Please sign in to comment.