From 9a0d853afa36bbcd4a46a64a9bbbc8afee613040 Mon Sep 17 00:00:00 2001 From: kuangthree Date: Sat, 20 Apr 2024 13:35:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layout/default/toast.css | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/layout/default/toast.css b/layout/default/toast.css index f177242c8..b5486fb0b 100644 --- a/layout/default/toast.css +++ b/layout/default/toast.css @@ -1,4 +1,5 @@ .toast-container { + display:block; position: absolute; top: 15%; left: 50%; @@ -8,7 +9,10 @@ .toast { - display: none; + display: block; + position: absolute; + left: 50%; + transform: translateX(-50%); background-color: rgba(255, 165, 0, 0.7); border-radius: 10px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);