feat(layout): move fixed formatting toolbar above

This commit is contained in:
Elian Doran
2025-12-09 20:36:48 +02:00
parent 394f6c3110
commit cd0e4a5678
4 changed files with 12 additions and 5 deletions

View File

@@ -24,12 +24,12 @@ export const RIBBON_TAB_DEFINITIONS: TabConfiguration[] = [
icon: "bx bx-text",
show: async ({ note, noteContext }) => note?.type === "text"
&& options.get("textNoteEditorType") === "ckeditor-classic"
&& !isExperimentalFeatureEnabled("new-layout")
&& !(await noteContext?.isReadOnly()),
toggleCommand: "toggleRibbonTabClassicEditor",
content: FormattingToolbar,
activate: ({ note }) => !options.is("editedNotesOpenInRibbon") || !note?.hasOwnedLabel("dateNote"),
stayInDom: true
stayInDom: !isExperimentalFeatureEnabled("new-layout"),
avoidInNewLayout: true
},
{
title: ({ note }) => note?.isTriliumSqlite() ? t("script_executor.query") : t("script_executor.script"),