feat(mobile): add info dialog

This commit is contained in:
Elian Doran 2025-04-12 10:54:57 +03:00
parent 4e7a7e334e
commit 44b9b3d7b8
No known key found for this signature in database
3 changed files with 7 additions and 8 deletions

View File

@ -20,7 +20,7 @@
* Document structure is now precalculated, so start-up time should be slightly increased. * Document structure is now precalculated, so start-up time should be slightly increased.
* Optimized the content in order to reduce the size on disk. * Optimized the content in order to reduce the size on disk.
* Mobile improvements: * Mobile improvements:
* The following dialogs are now accessible: bulk actions, branch prefix, include note, add link, sort child notes, note type selector, move/clone to, import/export, markdown import, note revisions * The following dialogs are now accessible: bulk actions, branch prefix, include note, add link, sort child notes, note type selector, move/clone to, import/export, markdown import, note revisions, info dialog.
* Delete notes now requests confirmation. * Delete notes now requests confirmation.
* Modals now have a safe margin on their bottom and are scrollable. * Modals now have a safe margin on their bottom and are scrollable.

View File

@ -252,13 +252,11 @@ export default class DesktopLayout {
) )
) )
) )
// Remove once modals are all merged .child(new CloseZenButton())
// Desktop-specific dialogs.
.child(new PasswordNoteSetDialog()) .child(new PasswordNoteSetDialog())
.child(new UploadAttachmentsDialog());
.child(new UploadAttachmentsDialog())
.child(new InfoDialog())
.child(new CloseZenButton());
applyModals(rootContainer); applyModals(rootContainer);
return rootContainer; return rootContainer;

View File

@ -20,6 +20,7 @@ import ProtectedSessionPasswordDialog from "../widgets/dialogs/protected_session
import ConfirmDialog from "../widgets/dialogs/confirm.js"; import ConfirmDialog from "../widgets/dialogs/confirm.js";
import RevisionsDialog from "../widgets/dialogs/revisions.js"; import RevisionsDialog from "../widgets/dialogs/revisions.js";
import DeleteNotesDialog from "../widgets/dialogs/delete_notes.js"; import DeleteNotesDialog from "../widgets/dialogs/delete_notes.js";
import InfoDialog from "../widgets/dialogs/info.js";
export function applyModals(rootContainer: RootContainer) { export function applyModals(rootContainer: RootContainer) {
rootContainer rootContainer
@ -41,7 +42,7 @@ export function applyModals(rootContainer: RootContainer) {
.child(new ProtectedSessionPasswordDialog()) .child(new ProtectedSessionPasswordDialog())
.child(new RevisionsDialog()) .child(new RevisionsDialog())
.child(new DeleteNotesDialog()) .child(new DeleteNotesDialog())
// .child(new InfoDialog()) .child(new InfoDialog())
.child(new ConfirmDialog()) .child(new ConfirmDialog())
.child(new PromptDialog()) .child(new PromptDialog())
} }