From 3eeff10338d8b7124da68b727b0d4d7788cfff34 Mon Sep 17 00:00:00 2001 From: imeepos Date: Tue, 13 Jan 2026 16:09:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BD=BF=E7=94=A8=E5=86=85=E8=81=94?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E4=BF=AE=E5=A4=8D=20Toast=20=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E8=BF=87=E5=B0=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 使用内联样式替代 TailwindCSS 类名 - 设置固定位置在屏幕 30% 高度处 - 字体大小 18px,字重 600 - 背景 rgba(0,0,0,0.9) 深色半透明 - 最小高度 60px,内边距 20px - 圆角 12px,添加阴影效果 Co-Authored-By: Claude --- components/ui/Toast.tsx | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/components/ui/Toast.tsx b/components/ui/Toast.tsx index dfb1c3a..0d86a75 100644 --- a/components/ui/Toast.tsx +++ b/components/ui/Toast.tsx @@ -73,12 +73,25 @@ const Toast = (function () { if (renderContent) { return renderContent() } - return title && {title} + return title && {title} } ; (global as any).toast?.show( - - + + {renderBody()} ,