fix: 移除 body 硬编码背景色,修复 dark 模式底部白底问题
This commit is contained in:
@@ -13,7 +13,7 @@ export default function RootLayout({
|
|||||||
}>) {
|
}>) {
|
||||||
return (
|
return (
|
||||||
<html lang="zh-CN">
|
<html lang="zh-CN">
|
||||||
<body className="bg-gray-50 text-gray-900 antialiased">{children}</body>
|
<body className="antialiased">{children}</body>
|
||||||
</html>
|
</html>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ function ResultContent() {
|
|||||||
|
|
||||||
if (loading) {
|
if (loading) {
|
||||||
return (
|
return (
|
||||||
<div className="flex min-h-screen items-center justify-center">
|
<div className="flex min-h-screen items-center justify-center bg-slate-50">
|
||||||
<div className="text-gray-500">查询支付结果中...</div>
|
<div className="text-gray-500">查询支付结果中...</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
@@ -73,7 +73,7 @@ function ResultContent() {
|
|||||||
const isPending = status === 'PENDING';
|
const isPending = status === 'PENDING';
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flex min-h-screen items-center justify-center p-4">
|
<div className="flex min-h-screen items-center justify-center bg-slate-50 p-4">
|
||||||
<div className="w-full max-w-md rounded-xl bg-white p-8 text-center shadow-lg">
|
<div className="w-full max-w-md rounded-xl bg-white p-8 text-center shadow-lg">
|
||||||
{isSuccess ? (
|
{isSuccess ? (
|
||||||
<>
|
<>
|
||||||
@@ -147,7 +147,7 @@ export default function PayResultPage() {
|
|||||||
return (
|
return (
|
||||||
<Suspense
|
<Suspense
|
||||||
fallback={
|
fallback={
|
||||||
<div className="flex min-h-screen items-center justify-center">
|
<div className="flex min-h-screen items-center justify-center bg-slate-50">
|
||||||
<div className="text-gray-500">加载中...</div>
|
<div className="text-gray-500">加载中...</div>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user