1
0
mirror of https://gitee.com/vant-contrib/vant.git synced 2025-04-06 03:57:59 +08:00

fix(Popover): fix gap under the triangle ()

This commit is contained in:
firefly 2022-01-06 11:18:00 +08:00 committed by GitHub
parent 0beacfa2a9
commit 3317fcbb0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -83,7 +83,8 @@
bottom: 0; bottom: 0;
border-top-color: currentColor; border-top-color: currentColor;
border-bottom-width: 0; border-bottom-width: 0;
transform: translate(-50%, 100%); transform: translate(-50%, 0%);
margin-bottom: calc(0px - var(--van-popover-arrow-size));
} }
} }
@ -116,7 +117,8 @@
right: 0; right: 0;
border-right-width: 0; border-right-width: 0;
border-left-color: currentColor; border-left-color: currentColor;
transform: translate(100%, -50%); transform: translate(0%, -50%);
margin-right: calc(0px - var(--van-popover-arrow-size));
} }
} }
@ -149,7 +151,8 @@
left: 0; left: 0;
border-right-color: currentColor; border-right-color: currentColor;
border-left-width: 0; border-left-width: 0;
transform: translate(-100%, -50%); transform: translate(0%, -50%);
margin-left: calc(0px - var(--van-popover-arrow-size));
} }
} }
@ -182,7 +185,8 @@
top: 0; top: 0;
border-top-width: 0; border-top-width: 0;
border-bottom-color: currentColor; border-bottom-color: currentColor;
transform: translate(-50%, -100%); transform: translate(-50%, 0%);
margin-top: calc(0px - var(--van-popover-arrow-size));
} }
} }