From 35a4a1589829529fd798aa8350d5529ea4660630 Mon Sep 17 00:00:00 2001 From: Jason Date: Sat, 28 Feb 2026 15:33:15 +0800 Subject: [PATCH] fix: restore flex-1 on toolbarRef to fix compact mode exit After moving ProxyToggle/FailoverToggle outside toolbarRef, the flex-1 class was accidentally left only on the outer wrapper. Without flex-1, toolbarRef.clientWidth reflects content width instead of available space, causing useAutoCompact's exit condition to never trigger. --- src/App.tsx | 479 ++++++++++++++++++++++++++-------------------------- 1 file changed, 244 insertions(+), 235 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index f18164b76..8207a9cce 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -964,252 +964,261 @@ function App() { )} -
-
- {currentView === "prompts" && ( - - )} - {currentView === "mcp" && ( - <> - + +
+
+ )} +
+
+ {currentView === "prompts" && ( - - )} - {currentView === "skills" && ( - <> - - - - - )} - {currentView === "skillsDiscovery" && ( - <> - - - - )} - {currentView === "providers" && ( - <> - {activeApp !== "opencode" && - activeApp !== "openclaw" && - settingsData?.enableLocalProxy && ( - <> - -
+ + + + )} + {currentView === "skills" && ( + <> + + + + + )} + {currentView === "skillsDiscovery" && ( + <> + + + + )} + {currentView === "providers" && ( + <> + + +
+ + - -
- - )} + {activeApp === "openclaw" ? ( + <> + + + + + + + ) : ( + <> + + + + + + )} + + +
- - -
- - - {activeApp === "openclaw" ? ( - <> - - - - - - - ) : ( - <> - - - - - - )} - - -
- - - - )} + + + )} +