From d199cbec6cb22882c09e1eb7b53cc5147fc970e2 Mon Sep 17 00:00:00 2001 From: 7418 <7418@openclaw.ai> Date: Fri, 13 Feb 2026 14:33:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20file=20tree=20height=20cut=20off=20at=20?= =?UTF-8?q?half=20panel=20=E2=80=94=20fill=20remaining=20space?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove hardcoded max-h-[400px] on tree content area. Convert the right panel body and Files section to flex column layout so the file tree expands to fill all available vertical space. Co-Authored-By: Claude Opus 4.6 --- src/components/layout/RightPanel.tsx | 14 +++++++------- src/components/project/FileTree.tsx | 8 ++++---- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/components/layout/RightPanel.tsx b/src/components/layout/RightPanel.tsx index 2f0c791..1d511dd 100644 --- a/src/components/layout/RightPanel.tsx +++ b/src/components/layout/RightPanel.tsx @@ -133,9 +133,9 @@ export function RightPanel({ width }: RightPanelProps) { {/* Body */} -
+
{/* Name - editable */} -
+
{isEditingName ? (
@@ -167,12 +167,12 @@ export function RightPanel({ width }: RightPanelProps) {
{/* Divider */} -
+
- {/* Files — always show FileTree */} -
- Files -
+ {/* Files — always show FileTree, fill remaining space */} +
+ Files +
+
{/* Header */} -
+

{workingDirectory || 'No directory selected'}

@@ -169,7 +169,7 @@ export function FileTree({ workingDirectory, onFileSelect, onFileAdd }: FileTree
{/* Search */} -
+
{/* Tree */} -
+
{loading && tree.length === 0 ? (