Skip to content

Build your personal knowledge base with Trilium Notes

feat(options): improve modal

Elian Doran30504b5c8995
diff --git a/apps/client/src/widgets/dialogs/PopupEditor.css b/apps/client/src/widgets/dialogs/PopupEditor.css
index 64114be377..d4759c63d4 100644
--- a/apps/client/src/widgets/dialogs/PopupEditor.css
+++ b/apps/client/src/widgets/dialogs/PopupEditor.css
@@ -152,16 +152,21 @@ body.mobile .modal.popup-editor-dialog .modal-dialog {
}
.modal.popup-editor-dialog .modal-content-with-sidebar .note-detail-content-widget-content.options {
- --options-first-item-top-margin: 30px;
+ --options-first-item-top-margin: 60px;
padding-top: var(--options-first-item-top-margin);
}
/* In the settings layout the main header only carries the window (maximize/close) buttons, with the
title moved into the sidebar. Slim that header and drop the page's own top spacing so the content
starts right beneath it, instead of leaving a tall empty band at the top of the content area. */
-.modal.popup-editor-dialog .modal-content-with-sidebar .modal-header {
- position: absolute;
- top: 0;
- right: 4px;
- z-index: 9999;
+.modal.popup-editor-dialog .modal-content-with-sidebar {
+ max-width: 1300px;
+ margin: auto;
+
+ .modal-header {
+ position: absolute;
+ top: 0;
+ right: 4px;
+ z-index: 9999;
+ }
}