diff --git a/apps/client/src/layouts/desktop_layout.tsx b/apps/client/src/layouts/desktop_layout.tsx
index c6de2f3bc..06e02f058 100644
--- a/apps/client/src/layouts/desktop_layout.tsx
+++ b/apps/client/src/layouts/desktop_layout.tsx
@@ -85,11 +85,11 @@ export default class DesktopLayout {
.child()
.child()
.optChild(isNewLayout, )
- .optChild(!isNewLayout, )
- .child()
- .child()
- .child()
- .child()
+ .child()
+ .optChild(!isNewLayout, )
+ .optChild(!isNewLayout, )
+ .optChild(!isNewLayout, )
+ .optChild(!isNewLayout, )
.optChild(isNewLayout, );
const rootContainer = new RootContainer(true)
diff --git a/apps/client/src/widgets/ribbon/NoteActions.tsx b/apps/client/src/widgets/ribbon/NoteActions.tsx
index c2f388f73..9990ef6fa 100644
--- a/apps/client/src/widgets/ribbon/NoteActions.tsx
+++ b/apps/client/src/widgets/ribbon/NoteActions.tsx
@@ -6,19 +6,22 @@ import NoteContext from "../../components/note_context";
import FNote from "../../entities/fnote";
import branches from "../../services/branches";
import dialog from "../../services/dialog";
+import { isExperimentalFeatureEnabled } from "../../services/experimental_features";
import { t } from "../../services/i18n";
+import protected_session from "../../services/protected_session";
import server from "../../services/server";
import toast from "../../services/toast";
import { isElectron as getIsElectron, isMac as getIsMac } from "../../services/utils";
import ws from "../../services/ws";
+import ClosePaneButton from "../buttons/close_pane_button";
+import CreatePaneButton from "../buttons/create_pane_button";
+import MovePaneButton from "../buttons/move_pane_button";
import ActionButton from "../react/ActionButton";
import Dropdown from "../react/Dropdown";
import { FormDropdownDivider, FormDropdownSubmenu, FormListHeader, FormListItem, FormListToggleableItem } from "../react/FormList";
import { useIsNoteReadOnly, useNoteContext, useNoteLabel, useNoteLabelBoolean, useNoteProperty, useTriliumOption } from "../react/hooks";
import { ParentComponent } from "../react/react_utils";
-import { isExperimentalFeatureEnabled } from "../../services/experimental_features";
import { NoteTypeDropdownContent, useNoteBookmarkState, useShareState } from "./BasicPropertiesTab";
-import protected_session from "../../services/protected_session";
const isNewLayout = isExperimentalFeatureEnabled("new-layout");
@@ -26,6 +29,10 @@ export default function NoteActions() {
const { note, noteContext } = useNoteContext();
return (
+
+
+
+
{note && !isNewLayout && }
{note && note.type !== "launcher" && }
@@ -79,14 +86,14 @@ function NoteContextMenu({ note, noteContext }: { note: FNote, noteContext?: Not
{isNewLayout && }
-
+
{isNewLayout && isNormalViewMode && !isHelpPage && <>
>}
-
+
parentComponent?.triggerCommand("showImportDialog", { noteId: note.noteId })} />
@@ -98,7 +105,7 @@ function NoteContextMenu({ note, noteContext }: { note: FNote, noteContext?: Not
})} />
{isElectron && }
-
+
@@ -107,7 +114,7 @@ function NoteContextMenu({ note, noteContext }: { note: FNote, noteContext?: Not
{canBeConvertedToAttachment && }
- {note.type === "render" && }
@@ -122,7 +129,7 @@ function NoteContextMenu({ note, noteContext }: { note: FNote, noteContext?: Not
-
+
branches.deleteNotes([note.getParentBranches()[0].branchId])}
@@ -168,7 +175,7 @@ function NoteBasicProperties({ note }: { note: FNote }) {
currentValue={isTemplate} onChange={setIsTemplate}
helpPage="KC1HB96bqqHX"
disabled={note?.noteId.startsWith("_options")}
- />
+ />
>;
}