Skip to content

Commit aa38645

Browse files
committed
fix nits
1 parent 58c4b3d commit aa38645

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

frontend/app/tab/tabbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ const TabBar = memo(({ workspace, noTabs }: TabBarProps) => {
692692
className="tabs-wrapper"
693693
ref={tabsWrapperRef}
694694
style={{
695-
width: `${tabsWrapperWidth}px`,
695+
width: noTabs ? 0 : tabsWrapperWidth,
696696
...(noTabs ? ({ WebkitAppRegion: "drag" } as React.CSSProperties) : {}),
697697
}}
698698
>

frontend/app/workspace/workspace.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ const WorkspaceElem = memo(() => {
5858
const panelContainerRef = useRef<HTMLDivElement>(null);
5959
const aiPanelWrapperRef = useRef<HTMLDivElement>(null);
6060

61+
// showLeftTabBar is passed as a seed value only; subsequent changes are handled by setShowLeftTabBar below.
62+
// Do NOT add showLeftTabBar as a dep here — re-registering refs on config changes would redundantly re-run commitLayouts.
6163
useEffect(() => {
6264
if (
6365
aiPanelRef.current &&

0 commit comments

Comments
 (0)