mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
feat(mobile): support note type selector
This commit is contained in:
parent
cd00c89dfe
commit
9aaf48426a
@ -20,7 +20,7 @@
|
||||
* 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, sort child notes.
|
||||
* The following dialogs are now accessible: bulk actions, branch prefix, include note, add link, sort child notes, note type selector.
|
||||
* Modals now have a safe margin on their bottom and are scrollable.
|
||||
|
||||
## 🌍 Internationalization
|
||||
|
@ -254,7 +254,7 @@ export default class DesktopLayout {
|
||||
)
|
||||
// Remove once modals are all merged
|
||||
.child(new PasswordNoteSetDialog())
|
||||
.child(new NoteTypeChooserDialog())
|
||||
|
||||
.child(new CloneToDialog())
|
||||
.child(new MoveToDialog())
|
||||
.child(new ImportDialog())
|
||||
|
@ -10,6 +10,7 @@ import IncludeNoteDialog from "../widgets/dialogs/include_note.js";
|
||||
import BulkActionsDialog from "../widgets/dialogs/bulk_actions.js";
|
||||
import BranchPrefixDialog from "../widgets/dialogs/branch_prefix.js";
|
||||
import SortChildNotesDialog from "../widgets/dialogs/sort_child_notes.js";
|
||||
import NoteTypeChooserDialog from "../widgets/dialogs/note_type_chooser.js";
|
||||
|
||||
export function applyModals(rootContainer: RootContainer) {
|
||||
rootContainer
|
||||
@ -19,9 +20,8 @@ export function applyModals(rootContainer: RootContainer) {
|
||||
.child(new RecentChangesDialog())
|
||||
.child(new BranchPrefixDialog())
|
||||
.child(new SortChildNotesDialog())
|
||||
// .child(new PasswordNoteSetDialog())
|
||||
.child(new IncludeNoteDialog())
|
||||
// .child(new NoteTypeChooserDialog())
|
||||
.child(new NoteTypeChooserDialog())
|
||||
.child(new JumpToNoteDialog())
|
||||
.child(new AddLinkDialog())
|
||||
// .child(new CloneToDialog())
|
||||
|
@ -1425,6 +1425,12 @@ body:not(.mobile) #launcher-pane.horizontal .dropdown-submenu > .dropdown-menu {
|
||||
max-height: unset;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
body.mobile .modal-dialog .dropdown-menu {
|
||||
position: static !important;
|
||||
border: 0 !important;
|
||||
border-radius: 0 !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* Mobile, tablet mode */
|
||||
|
Loading…
x
Reference in New Issue
Block a user