A platform for community discussion. Free, open, simple.
Limiting history modal height and width
Kris41999b994920
diff --git a/app/assets/stylesheets/common/base/modal.scss b/app/assets/stylesheets/common/base/modal.scssindex ce3ff6ca87c..60c411eb572 100644--- a/app/assets/stylesheets/common/base/modal.scss+++ b/app/assets/stylesheets/common/base/modal.scss@@ -130,9 +130,10 @@height: 100%;z-index: z("modal","content");overflow: auto;-- .modal-body {- max-height: none !important;+ &:not(.history-modal) {+ .modal-body {+ max-height: none !important;+ }}}diff --git a/app/assets/stylesheets/desktop/history.scss b/app/assets/stylesheets/desktop/history.scssindex 3192d0b9b2e..36af336c15e 100644--- a/app/assets/stylesheets/desktop/history.scss+++ b/app/assets/stylesheets/desktop/history.scss@@ -3,9 +3,11 @@.modal.history-modal {.modal-inner-container {- min-height: 500px;max-width: 960px;}+ .modal-body {+ height: 70vh;+ }#revision-controls {.btn[disabled] {cursor: not-allowed;diff --git a/app/assets/stylesheets/mobile/history.scss b/app/assets/stylesheets/mobile/history.scssindex bae7149be0e..cdcbd44d2e8 100644--- a/app/assets/stylesheets/mobile/history.scss+++ b/app/assets/stylesheets/mobile/history.scss@@ -2,6 +2,15 @@button {float: none;}+ .modal-body {+ height: 62vh;+ }+ .modal-inner-container {+ min-height: 400px;+ }+ #revisions {+ max-width: 90vw;+ }#display-modes {display: none;}