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
chore(layout): hide ribbon in new layout
Elian Dorand7887fe25ff6
diff --git a/apps/client/src/widgets/ribbon/RibbonDefinition.ts b/apps/client/src/widgets/ribbon/RibbonDefinition.tsindex 7813c06d83..0b8f568ddb 100644--- a/apps/client/src/widgets/ribbon/RibbonDefinition.ts+++ b/apps/client/src/widgets/ribbon/RibbonDefinition.ts@@ -125,7 +125,7 @@ export const RIBBON_TAB_DEFINITIONS: TabConfiguration[] = [{title: t("similar_notes.title"),icon: "bx bx-bar-chart",- show: ({ note }) => note?.type !== "search" && !note?.isLabelTruthy("similarNotesWidgetDisabled"),+ show: ({ note }) => !isNewLayout && note?.type !== "search" && !note?.isLabelTruthy("similarNotesWidgetDisabled"),content: SimilarNotesTab,toggleCommand: "toggleRibbonTabSimilarNotes"},diff --git a/apps/client/src/widgets/ribbon/style.css b/apps/client/src/widgets/ribbon/style.cssindex 8ffb3e2098..b314d74d1d 100644--- a/apps/client/src/widgets/ribbon/style.css+++ b/apps/client/src/widgets/ribbon/style.css@@ -422,6 +422,10 @@ body[dir=rtl] .attribute-list-editor {/* #region Experimental layout */body.experimental-feature-new-layout {+ .ribbon-top-row {+ min-height: 0;+ }+.ribbon-container {display: flex;flex-direction: column-reverse;