Skip to content

Build your personal knowledge base with Trilium Notes

fix(mobile): modals on tablet view

Elian Dorana5306b206754
diff --git a/apps/client/src/stylesheets/style.css b/apps/client/src/stylesheets/style.css
index a8d5c75006..9ac3995d09 100644
--- a/apps/client/src/stylesheets/style.css
+++ b/apps/client/src/stylesheets/style.css
@@ -224,10 +224,6 @@ body.mobile .modal .modal-dialog {
width: 100%;
}
-body.mobile .modal .modal-content {
- border-radius: var(--bs-modal-border-radius) var(--bs-modal-border-radius) 0 0;
-}
-
.component {
contain: size;
}
@@ -1614,6 +1610,7 @@ body:not(.mobile) #launcher-pane.horizontal .dropdown-submenu > .dropdown-menu {
body.mobile .modal-content {
overflow-y: auto;
+ border-radius: var(--bs-modal-border-radius) var(--bs-modal-border-radius) 0 0;
}
body.mobile .modal-footer {
@@ -1650,6 +1647,17 @@ body:not(.mobile) #launcher-pane.horizontal .dropdown-submenu > .dropdown-menu {
}
}
+@media (min-width: 992px) {
+ .modal-dialog {
+ margin: var(--bs-modal-margin);
+ max-width: 80%;
+ }
+
+ .modal-content {
+ height: 100%;
+ }
+}
+
/* Mobile, tablet mode */
@media (min-width: 992px) {
body.mobile #root-widget {