fix: sidebar mobile responsive and footer link clickability

This commit is contained in:
zetaloop
2026-02-20 20:36:27 +08:00
parent ebdf56a361
commit ed3858cff3
10 changed files with 86 additions and 86 deletions
+1 -11
View File
@@ -6,20 +6,10 @@ import { Badge } from "@/components/ui/badge"
import { Button } from "@/components/ui/button"
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"
import { Progress } from "@/components/ui/progress"
import { statusLabels } from "@/lib/constants"
import { mockOrders, mockPlayers, mockServices, mockShops } from "@/lib/mock-data"
import { useAuthStore } from "@/store/auth"
const statusLabels: Record<string, string> = {
pending_payment: "待支付",
pending_accept: "待接单",
in_progress: "进行中",
pending_close: "待结单",
pending_review: "待评价",
disputed: "争议中",
completed: "已完成",
cancelled: "已取消",
}
export default function DashboardPage() {
const { currentRole } = useAuthStore()
const isOwner = currentRole === "owner"
+3 -1
View File
@@ -6,7 +6,9 @@ export default function DashboardLayout({ children }: { children: React.ReactNod
<div className="flex min-h-screen flex-col">
<Header />
<div className="flex flex-1">
<DashboardSidebar />
<div className="hidden md:block">
<DashboardSidebar />
</div>
<main className="flex-1 p-6">{children}</main>
</div>
</div>