Skip to content

Build your personal knowledge base with Trilium Notes

promotes attributes tab should be always visible when available, fixes #3806

zadam32e9fd291d09
diff --git a/src/public/app/layouts/desktop_layout.js b/src/public/app/layouts/desktop_layout.js
index 3040a4ac35..17dcc99a79 100644
--- a/src/public/app/layouts/desktop_layout.js
+++ b/src/public/app/layouts/desktop_layout.js
@@ -128,6 +128,10 @@ export default class DesktopLayout {
)
.child(
new RibbonContainer()
+ // order of the widgets matter. Some of these want to "activate" themselves
+ // when visible, when this happens to multiple of them, the first one "wins".
+ // promoted attributes should always win.
+ .ribbon(new PromotedAttributesWidget())
.ribbon(new ScriptExecutorWidget())
.ribbon(new SearchDefinitionWidget())
.ribbon(new EditedNotesWidget())
@@ -135,7 +139,6 @@ export default class DesktopLayout {
.ribbon(new NotePropertiesWidget())
.ribbon(new FilePropertiesWidget())
.ribbon(new ImagePropertiesWidget())
- .ribbon(new PromotedAttributesWidget())
.ribbon(new BasicPropertiesWidget())
.ribbon(new OwnedAttributeListWidget())
.ribbon(new InheritedAttributesWidget())