fix(layout): extra spacing between badges when no custom actions are available

This commit is contained in:
Elian Doran 2025-12-14 23:02:24 +02:00
parent 4877238015
commit 42bde3873b
No known key found for this signature in database
2 changed files with 5 additions and 2 deletions

View File

@ -32,7 +32,7 @@ export default function NoteActions() {
const { note, ntxId, noteContext } = useNoteContext(); const { note, ntxId, noteContext } = useNoteContext();
return ( return (
<div className="ribbon-button-container" style={{ contain: "none" }}> <div className="ribbon-button-container" style={{ contain: "none" }}>
{note && <NoteActionsCustom note={note} ntxId={ntxId} />} {note && ntxId && <NoteActionsCustom note={note} ntxId={ntxId} />}
<MovePaneButton direction="left" /> <MovePaneButton direction="left" />
<MovePaneButton direction="right" /> <MovePaneButton direction="right" />
<ClosePaneButton /> <ClosePaneButton />

View File

@ -459,8 +459,11 @@ body.experimental-feature-new-layout {
align-items: center; align-items: center;
height: 36px; height: 36px;
gap: var(--button-gap); gap: var(--button-gap);
&> button:last-of-type {
margin-right: 1em; margin-right: 1em;
} }
} }
}
} }
/* #endregion */ /* #endregion */