Skip to content

Build your personal knowledge base with Trilium Notes

fix(options): wrong height on mobile

Elian Dorand27ea59865af
diff --git a/apps/client/src/widgets/dialogs/OptionsDialog.css b/apps/client/src/widgets/dialogs/OptionsDialog.css
index 5e88dc2750..d2798d8529 100644
--- a/apps/client/src/widgets/dialogs/OptionsDialog.css
+++ b/apps/client/src/widgets/dialogs/OptionsDialog.css
@@ -77,6 +77,12 @@ body.mobile .modal.options-dialog.mobile-view-list .modal-body {
display: none;
}
+/* With the body hidden, collapse the main pane to just its header (the generic layout gives it
+ flex-grow: 1, which would leave it occupying half the dialog) so the list takes the full height. */
+body.mobile .modal.options-dialog.mobile-view-list .modal-main {
+ flex-grow: 0;
+}
+
body.mobile .modal.options-dialog.mobile-view-page .modal-sidebar {
display: none;
}