fix: 修复 toast 不居中问题 (#3497)

This commit is contained in:
liaoxuezhi 2022-01-26 16:27:14 +08:00 committed by GitHub
parent 27671920ab
commit 2dc31d67e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -196,7 +196,7 @@
&-wrap--topCenter {
top: var(--gap-base);
left: 50%;
margin-left: calc(var(--Toast-width) / -2);
transform: translate(-50%, 0);
}
&-wrap--topLeft {
@ -211,7 +211,7 @@
&-wrap--bottomCenter {
left: 50%;
margin-left: calc(var(--Toast-width) / -2);
transform: translate(-50%, 0);
bottom: var(--gap-base);
}