diff --git a/src/components/toast/toast.less b/src/components/toast/toast.less index 417497f275..881634c875 100644 --- a/src/components/toast/toast.less +++ b/src/components/toast/toast.less @@ -7,13 +7,13 @@ left: 0; width: 100%; height: 100%; + text-align: center; } .@{class-prefix-toast}-main { display: inline-block; position: relative; top: 50%; - left: 50%; - transform: translate(-50%, -50%); + transform: translateY(-50%); width: auto; max-width: 204px; max-height: 70%;