From d0dff1a144a61640ea0fcc2e85423c0fd719ed48 Mon Sep 17 00:00:00 2001
From: Brennan Benson <79079362+brennanb2025@users.noreply.github.com>
Date: Sun, 26 Apr 2026 16:55:03 -0700
Subject: [PATCH] fix: keep right sidebar toggle icon vertically centered when
toggling open/close (#1144)
---
src/renderer/src/App.tsx | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/src/renderer/src/App.tsx b/src/renderer/src/App.tsx
index f21e95643..caf5fd476 100644
--- a/src/renderer/src/App.tsx
+++ b/src/renderer/src/App.tsx
@@ -1028,12 +1028,13 @@ function App(): React.JSX.Element {
{/* Why: right sidebar toggle floats at the top-right of the center
column so it's always accessible whether the right sidebar is
- open or closed. Offset by the 8px drag strip so it aligns with
- the tab row's 34px band instead of overlapping the draggable
- window surface above. */}
+ open or closed. Match the RightSidebar header's 42px height and
+ top-0 anchor so the icon's vertical center is identical between
+ open and closed states — otherwise toggling makes the icon jump
+ a few pixels, which reads as layout jitter. */}
{workspaceActive && !rightSidebarOpen && (
{rightSidebarToggle}