From c427aa2f7a1dca82537198d9632142af7d025fdf Mon Sep 17 00:00:00 2001 From: NimBold Date: Sun, 19 Jul 2026 03:31:37 +0330 Subject: [PATCH] fix(ui): stabilize sidebar and titlebar placement Keep left RTL sidebars physically aligned with the default layout, swap titlebar actions with side-aware custom controls, and preserve usable titlebar space when the sidebar is visible. Refs #17 --- src/App.tsx | 4 +++- src/components/WindowControls.tsx | 11 +++++++++-- src/index.css | 25 +++++++++++++++++++++---- 3 files changed, 33 insertions(+), 7 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 918dd23..0b6f981 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -943,7 +943,9 @@ function App() { } ${ hasWindowChrome ? 'app-shell--window-chrome' : '' }`}> - {usesCustomWindowControls && } + {usesCustomWindowControls && ( + + )}
) => { event.stopPropagation(); }; -export function WindowControls() { +interface WindowControlsProps { + side: 'left' | 'right'; +} + +export function WindowControls({ side }: WindowControlsProps) { const { t } = useTranslation(); return ( -
$.window.controls)}> +
$.window.controls)} + >