Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix(layout): extra spacing between badges when no custom actions are available
Elian Doran42bde3873b35
diff --git a/apps/client/src/widgets/ribbon/NoteActions.tsx b/apps/client/src/widgets/ribbon/NoteActions.tsxindex 6d2f46bdab..487379f0d1 100644--- a/apps/client/src/widgets/ribbon/NoteActions.tsx+++ b/apps/client/src/widgets/ribbon/NoteActions.tsx@@ -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 />diff --git a/apps/client/src/widgets/ribbon/style.css b/apps/client/src/widgets/ribbon/style.cssindex f9dfa3b4d1..bea93aa502 100644--- a/apps/client/src/widgets/ribbon/style.css+++ b/apps/client/src/widgets/ribbon/style.css@@ -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;+ }}}}