diff --git a/client/src/components/common/CardSkeleton.tsx b/client/src/components/common/CardSkeleton.tsx index 1e130c40..e7f4312f 100644 --- a/client/src/components/common/CardSkeleton.tsx +++ b/client/src/components/common/CardSkeleton.tsx @@ -1,13 +1,12 @@ import { Skeleton } from "../ui/skeleton"; -import { Card } from "../ui/card"; export function CardSkeleton({ lines = 6 }: { lines?: number }) { return ( - +
{Array.from({ length: lines }, (_, i) => ( ))} - +
); } diff --git a/client/src/components/common/ErrorBoundary.tsx b/client/src/components/common/ErrorBoundary.tsx index 80781724..e8319484 100644 --- a/client/src/components/common/ErrorBoundary.tsx +++ b/client/src/components/common/ErrorBoundary.tsx @@ -1,5 +1,4 @@ import { Component, type ErrorInfo, type ReactNode } from "react"; -import { Card } from "../ui/card"; type Props = { children: ReactNode; @@ -32,7 +31,7 @@ export class ErrorBoundary extends Component { } return ( - +

页面渲染出错

{this.state.error?.message ?? "发生了未知错误"} @@ -55,7 +54,7 @@ export class ErrorBoundary extends Component { 返回首页

-
+ ); } diff --git a/client/src/index.css b/client/src/index.css index 1803f094..d990eb14 100644 --- a/client/src/index.css +++ b/client/src/index.css @@ -42,7 +42,7 @@ /* Cards */ .card-std { - @apply bg-white p-6 rounded-xl shadow-sm ring-1 ring-zinc-900/5 transition-all; + @apply bg-white rounded-xl shadow-sm ring-1 ring-zinc-900/5 transition-all; } .card-title { diff --git a/client/src/pages/ApprovalRulesPage.tsx b/client/src/pages/ApprovalRulesPage.tsx index 662608e3..de91ebbd 100644 --- a/client/src/pages/ApprovalRulesPage.tsx +++ b/client/src/pages/ApprovalRulesPage.tsx @@ -155,7 +155,7 @@ export function ApprovalRulesPage() {

) : null} -
+

新建审批规则

@@ -280,7 +280,7 @@ export function ApprovalRulesPage() {
-
+

规则列表

{listQuery.isLoading ? : null} diff --git a/client/src/pages/AuditLogsPage.tsx b/client/src/pages/AuditLogsPage.tsx index 2ddaa72a..23ddf83a 100644 --- a/client/src/pages/AuditLogsPage.tsx +++ b/client/src/pages/AuditLogsPage.tsx @@ -135,7 +135,7 @@ export function AuditLogsPage() { } /> -
+