From fc08a5d36456f7685ad04e6a6a2c133cb87f15dd Mon Sep 17 00:00:00 2001 From: Jason Date: Mon, 16 Mar 2026 00:19:29 +0800 Subject: [PATCH] fix(ui): replace hardcoded height calc with flex-1 to eliminate bottom blank area All content panels used h-[calc(100vh-8rem)] which didn't match the actual available space (CONTENT_TOP_OFFSET is 92px on Mac, 64px on Win/Linux, not 128px), causing a visible gap at the bottom. Replace with flex-1 min-h-0 to let panels fill the remaining space after
and any sibling elements (e.g. OpenClaw health banner). --- src/App.tsx | 2 +- src/components/agents/AgentsPanel.tsx | 2 +- src/components/mcp/UnifiedMcpPanel.tsx | 2 +- src/components/prompts/PromptPanel.tsx | 2 +- src/components/sessions/SessionManagerPage.tsx | 2 +- src/components/skills/SkillsPage.tsx | 2 +- src/components/skills/UnifiedSkillsPanel.tsx | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index d4436da04..5ee35ddc5 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -752,7 +752,7 @@ function App() { return ; default: return ( -
+
+
diff --git a/src/components/mcp/UnifiedMcpPanel.tsx b/src/components/mcp/UnifiedMcpPanel.tsx index 9694c551e..761ddcd65 100644 --- a/src/components/mcp/UnifiedMcpPanel.tsx +++ b/src/components/mcp/UnifiedMcpPanel.tsx @@ -132,7 +132,7 @@ const UnifiedMcpPanel = React.forwardRef< }; return ( -
+
( const enabledPrompt = promptEntries.find(([_, p]) => p.enabled); return ( -
+
{t("prompts.count", { count: promptEntries.length })} ·{" "} diff --git a/src/components/sessions/SessionManagerPage.tsx b/src/components/sessions/SessionManagerPage.tsx index 296caf968..99811bc81 100644 --- a/src/components/sessions/SessionManagerPage.tsx +++ b/src/components/sessions/SessionManagerPage.tsx @@ -208,7 +208,7 @@ export function SessionManagerPage({ appId }: { appId: string }) { return ( -
+
{/* 主内容区域 - 左右分栏 */}
diff --git a/src/components/skills/SkillsPage.tsx b/src/components/skills/SkillsPage.tsx index 0bdcd3b4c..ba09c835b 100644 --- a/src/components/skills/SkillsPage.tsx +++ b/src/components/skills/SkillsPage.tsx @@ -233,7 +233,7 @@ export const SkillsPage = forwardRef( }, [skills, searchQuery, filterRepo, filterStatus]); return ( -
+
{/* 技能网格(可滚动详情区域) */}
diff --git a/src/components/skills/UnifiedSkillsPanel.tsx b/src/components/skills/UnifiedSkillsPanel.tsx index 0836bbb40..ca5c719e1 100644 --- a/src/components/skills/UnifiedSkillsPanel.tsx +++ b/src/components/skills/UnifiedSkillsPanel.tsx @@ -250,7 +250,7 @@ const UnifiedSkillsPanel = React.forwardRef< })); return ( -
+