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
This commit is contained in:
NimBold
2026-07-19 03:31:37 +03:30
parent 23878c2ef8
commit c427aa2f7a
3 changed files with 33 additions and 7 deletions
+9 -2
View File
@@ -9,11 +9,18 @@ const stopTitlebarDrag = (event: PointerEvent<HTMLButtonElement>) => {
event.stopPropagation();
};
export function WindowControls() {
interface WindowControlsProps {
side: 'left' | 'right';
}
export function WindowControls({ side }: WindowControlsProps) {
const { t } = useTranslation();
return (
<div className="window-controls" aria-label={t($ => $.window.controls)}>
<div
className={`window-controls window-controls--${side}`}
aria-label={t($ => $.window.controls)}
>
<button
type="button"
className="window-control close"