From a9484ff65443b810e0553cdc73f761c2e7ac6d48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Wed, 9 Jun 2021 15:47:05 +0300 Subject: [PATCH] Fixed #1315 - Toast center positioning enhancement --- src/components/toast/Toast.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/components/toast/Toast.vue b/src/components/toast/Toast.vue index 3fa6aa505..eaedb745d 100755 --- a/src/components/toast/Toast.vue +++ b/src/components/toast/Toast.vue @@ -143,14 +143,16 @@ export default { .p-toast-top-center { top: 20px; - left: 50%; - margin-left: -10em; + left: 0; + right: 0; + margin: auto; } .p-toast-bottom-center { bottom: 20px; - left: 50%; - margin-left: -10em; + left: 0; + right: 0; + margin: auto; } .p-toast-center {