Skip to content

Commit

Permalink
fix: [popper]修复arrow样式问题 fix #923
Browse files Browse the repository at this point in the history
  • Loading branch information
hxh2010 authored and albyben committed Oct 31, 2024
1 parent f458500 commit fac3a20
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions components/popper/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
}

&[data-popper-placement^='top'] .arrow {
bottom: calc(1.1 * var(--arrowSize));
bottom: calc(1.05 * var(--arrowSize));

&::before {
left: calc(-1 * var(--arrowSize));
Expand All @@ -39,7 +39,7 @@
}

&[data-popper-placement^='bottom'] .arrow {
top: calc(-0.8 * var(--arrowSize));
top: calc(-0.85 * var(--arrowSize));

&::before {
left: calc(-1 * var(--arrowSize));
Expand All @@ -49,7 +49,7 @@
}

&[data-popper-placement^='left'] .arrow {
right: calc(1.1 * var(--arrowSize));
right: calc(1.05 * var(--arrowSize));

&::before {
top: calc(-1 * var(--arrowSize));
Expand All @@ -59,7 +59,7 @@
}

&[data-popper-placement^='right'] .arrow {
left: calc(-0.8 * var(--arrowSize));
left: calc(-0.85 * var(--arrowSize));

&::before {
top: calc(-1 * var(--arrowSize));
Expand Down Expand Up @@ -97,5 +97,3 @@
.popper-motion(~'@{popper-prefix-cls}-bottom-end', kdZoomTopRight);
.popper-motion(~'@{popper-prefix-cls}-right-start', kdZoomTopLeft);
.popper-motion(~'@{popper-prefix-cls}-bottom-start', kdZoomTopLeft);


0 comments on commit fac3a20

Please sign in to comment.