From 4ca3ef96b9c965f2e8a4d3ceeab5cd80cb73a2f5 Mon Sep 17 00:00:00 2001
From: afei A <57030625+NewHubBoy@users.noreply.github.com>
Date: Sat, 28 Mar 2026 00:14:00 +0800
Subject: [PATCH] feat: tighten dashboard shell density
---
app/globals.css | 4 ++++
src/components/layout/dashboard-shell.tsx | 20 ++++++++++----------
src/components/ui/page-header.tsx | 14 +++++++-------
tests/ui/dashboard-shell.test.tsx | 9 +++++++++
4 files changed, 30 insertions(+), 17 deletions(-)
diff --git a/app/globals.css b/app/globals.css
index 823b486..53f3b85 100644
--- a/app/globals.css
+++ b/app/globals.css
@@ -1,6 +1,7 @@
@import "tailwindcss";
:root {
+ --app-bg: #f6f1e8;
--bg-canvas: #f6f1e8;
--bg-canvas-strong: #efe5d7;
--bg-elevated: rgba(255, 250, 243, 0.86);
@@ -23,6 +24,9 @@
--border-strong: rgba(82, 71, 57, 0.24);
--shadow-shell: 0 28px 80px rgba(47, 38, 28, 0.12);
--shadow-card: 0 18px 40px rgba(62, 46, 27, 0.08);
+ --page-gap: 16px;
+ --panel-radius: 14px;
+ --control-height: 38px;
--font-sans:
"Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
sans-serif;
diff --git a/src/components/layout/dashboard-shell.tsx b/src/components/layout/dashboard-shell.tsx
index 590c7fa..228e2ff 100644
--- a/src/components/layout/dashboard-shell.tsx
+++ b/src/components/layout/dashboard-shell.tsx
@@ -9,38 +9,38 @@ type DashboardShellProps = {
export function DashboardShell({ children }: DashboardShellProps) {
return (
-
-
+
+