Skip to content
This repository was archived by the owner on Nov 25, 2025. It is now read-only.

Commit ede76b4

Browse files
zsioclaude
andcommitted
fix: 修复页面布局和优化使用文档页面
- 修复 sticky footer 布局问题,确保内容不足时页面占满视口高度 - 优化使用文档页面,移除冗余的背景装饰和页脚信息 - 添加 chrome-devtools MCP 工具配置 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 2bb0123 commit ede76b4

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

.mcp.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
"shadcn@latest",
1313
"mcp"
1414
]
15+
},
16+
"chrome-devtools": {
17+
"command": "npx",
18+
"args": ["-y", "chrome-devtools-mcp@latest"]
1519
}
1620
}
1721
}

src/app/globals.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,11 @@
117117
* {
118118
@apply border-border outline-ring/50;
119119
}
120+
html {
121+
height: 100%;
122+
}
120123
body {
121124
@apply bg-background text-foreground;
125+
min-height: 100%;
122126
}
123127
}

src/app/usage-doc/page.tsx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -266,21 +266,14 @@ export default function UsageDocPage() {
266266
<div className="relative flex gap-8">
267267
{/* 左侧主文档 */}
268268
<div className="flex-1">
269-
{/* 背景装饰 */}
270-
<div className="absolute inset-0 -z-10 mx-auto max-w-7xl">
271-
<div className="absolute left-1/2 top-0 -translate-x-1/2 w-[200%] h-48 bg-gradient-to-b from-primary/5 to-transparent rounded-[100%] blur-3xl" />
272-
</div>
269+
273270

274271
{/* 文档容器 */}
275272
<div className="relative bg-card rounded-xl shadow-sm border p-8 md:p-12">
276273
{/* 文档内容 */}
277274
<UsageDocContent origin={serviceOrigin} />
278275
</div>
279276

280-
{/* 页脚信息 */}
281-
<div className="mt-12 text-center text-sm text-muted-foreground">
282-
<p>文档持续更新中 • 最后更新: {new Date().toLocaleDateString('zh-CN')}</p>
283-
</div>
284277
</div>
285278

286279
{/* 右侧目录导航 */}

0 commit comments

Comments
 (0)