From f348f5d7edb48c2f583e13856ea662b33a665aa9 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sat, 12 Apr 2025 09:53:58 +0300 Subject: [PATCH] feat(mobile): support branch prefix dialog --- docs/Release Notes/Release Notes/v0.92.8-beta.md | 5 ++++- src/public/app/layouts/desktop_layout.ts | 1 - src/public/app/layouts/layout_commons.ts | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/Release Notes/Release Notes/v0.92.8-beta.md b/docs/Release Notes/Release Notes/v0.92.8-beta.md index d1723ba17..59ca3738e 100644 --- a/docs/Release Notes/Release Notes/v0.92.8-beta.md +++ b/docs/Release Notes/Release Notes/v0.92.8-beta.md @@ -8,7 +8,7 @@ * Calendar does not hide when clicking on a note by @JYC333 * Mobile improvements: * [Unable to add internal link on mobile version](https://github.com/TriliumNext/Notes/issues/1677) - * Note tree not closing when selecting some of the menu actions. + * Note tree not closing when selecting some of the menu actions. ## ✨ Improvements @@ -19,6 +19,9 @@ * In-app help: * Document structure is now precalculated, so start-up time should be slightly increased. * Optimized the content in order to reduce the size on disk. +* Mobile improvements: + * The following dialogs are now accessible: bulk actions, branch prefix, include note, add link. + * Modals now have a safe margin on their bottom and are scrollable. ## 🌍 Internationalization diff --git a/src/public/app/layouts/desktop_layout.ts b/src/public/app/layouts/desktop_layout.ts index fcd62d922..adb57ca41 100644 --- a/src/public/app/layouts/desktop_layout.ts +++ b/src/public/app/layouts/desktop_layout.ts @@ -253,7 +253,6 @@ export default class DesktopLayout { ) ) // Remove once modals are all merged - .child(new BranchPrefixDialog()) .child(new SortChildNotesDialog()) .child(new PasswordNoteSetDialog()) .child(new NoteTypeChooserDialog()) diff --git a/src/public/app/layouts/layout_commons.ts b/src/public/app/layouts/layout_commons.ts index 9451179f7..4b5ddf6bf 100644 --- a/src/public/app/layouts/layout_commons.ts +++ b/src/public/app/layouts/layout_commons.ts @@ -8,6 +8,7 @@ import PromptDialog from "../widgets/dialogs/prompt.js"; import AddLinkDialog from "../widgets/dialogs/add_link.js"; import IncludeNoteDialog from "../widgets/dialogs/include_note.js"; import BulkActionsDialog from "../widgets/dialogs/bulk_actions.js"; +import BranchPrefixDialog from "../widgets/dialogs/branch_prefix.js"; export function applyModals(rootContainer: RootContainer) { rootContainer @@ -15,7 +16,7 @@ export function applyModals(rootContainer: RootContainer) { .child(new AboutDialog()) .child(new HelpDialog()) .child(new RecentChangesDialog()) - // .child(new BranchPrefixDialog()) + .child(new BranchPrefixDialog()) // .child(new SortChildNotesDialog()) // .child(new PasswordNoteSetDialog()) .child(new IncludeNoteDialog())