diff options
| author | Benjamin Vray <bvr@odoo.com> | 2020-11-18 14:45:51 +0000 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2021-01-27 14:48:58 +0000 |
| commit | 9cd8c15ed22e3033c654fcfa28f76b79083dcf98 (patch) | |
| tree | e4331ae622cddad24039d2212c3b0ad08be612aa /addons/website | |
| parent | ac03898e72cab28efe103aa3d5e9fca0eee78240 (diff) | |
[FIX] website: fix popup height
- The modal content of the popup snippet had a maximum height of 100%
because of a global rule on modals. But, here, the scrollable element
is not the modal so we dont want this rule.
- For the popup to be scrolled correctly we also had to remove the
rule that adds a fixed 100% height on modal-dialog and we added a
min-height of 100% to correctly display the popup in the middle
position.
Part of https://github.com/odoo/odoo/pull/61998
task-2312878
Diffstat (limited to 'addons/website')
| -rw-r--r-- | addons/website/static/src/snippets/s_popup/001.scss | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/addons/website/static/src/snippets/s_popup/001.scss b/addons/website/static/src/snippets/s_popup/001.scss index af92f1b8c42..f8ae94ca632 100644 --- a/addons/website/static/src/snippets/s_popup/001.scss +++ b/addons/website/static/src/snippets/s_popup/001.scss @@ -1,11 +1,17 @@ .s_popup[data-vcss='001'] { .modal-content { min-height: $font-size-lg * 2; + max-height: none; border: 0; border-radius: 0; box-shadow: $modal-content-box-shadow-sm-up; } + .modal-dialog { + height: auto; + min-height: 100%; + } + // Close icon .s_popup_close { z-index: $zindex-modal; |
