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
2 changed files with 5 additions and 2 deletions

View File

@@ -32,7 +32,7 @@ export default function NoteActions() {
const { note, ntxId, noteContext } = useNoteContext();
return (
<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="right" />
<ClosePaneButton />

View File

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