mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 03:58:07 +08:00
fix: 修复 toast 不居中问题 (#3497)
This commit is contained in:
parent
27671920ab
commit
2dc31d67e9
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user