mirror of
https://github.com/nimbold/Firelink.git
synced 2026-07-28 13:00:10 +00:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user