Skip to content

Build your personal knowledge base with Trilium Notes

fix(quick-edit): make the mobile sheet full width

Elian Doran9fd87279ca57
diff --git a/apps/client/src/widgets/dialogs/PopupEditor.css b/apps/client/src/widgets/dialogs/PopupEditor.css
index 5058368013..a9179475ea 100644
--- a/apps/client/src/widgets/dialogs/PopupEditor.css
+++ b/apps/client/src/widgets/dialogs/PopupEditor.css
@@ -24,11 +24,18 @@ body.desktop .modal.popup-editor-dialog .modal-dialog .modal-content {
}
body.mobile .modal.popup-editor-dialog .modal-dialog {
- max-width: min(var(--preferred-max-content-width), 95vw);
max-height: var(--tn-modal-max-height);
height: 100%;
}
+/* Bootstrap caps every `.modal-dialog` at 500px from 576px up; the quick editor is a sheet, so it
+ takes the whole width on phones and leaves the tablet rule (80%) to apply above 992px. */
+@media (max-width: 991px) {
+ body.mobile .modal.popup-editor-dialog .modal-dialog {
+ max-width: none;
+ }
+}
+
.modal.popup-editor-dialog .modal-content {
transition: background-color 250ms ease-in;
}