diff options
| author | shreya thakrar <sht@odoo.com> | 2019-12-10 09:27:07 +0000 |
|---|---|---|
| committer | shreya thakrar <sht@odoo.com> | 2020-01-23 16:09:50 +0000 |
| commit | 289f47da14d986195fd2dd8a5194ddb7a8ec0070 (patch) | |
| tree | 24c7708980f362e637c8b997d2469b6a1ef9059a /addons/web/static/src/scss | |
| parent | 876a7aad0b2b30889ee5768459d1b2f0a0c1a33f (diff) | |
[FIX] web: remove min-height of form sheet within a modal
We added min-height for `o_form_sheet` in form view with a commit[1] restoring
the views design (after views refactoring).
However, the min-height isn't very useful when form view is opened witin a
modal (FormViewDialog). Especially, when the form view is having only few
fields, the `o_form_sheet` container occupies unnecessary height and looks
a bit ugly.
This commit fixes the issues by setting the min-height to `0` for
`o_form_sheet` container in such cases.
[1] - https://github.com/odoo/odoo/commit/250e716c3a12#diff-01e46b3171a7282967199e5d45fca0e6R15
TaskID: 2150471
PR #41619
closes odoo/odoo#43865
X-original-commit: 144d720bdc54ce762b84b1a78aa7e517ec1c3dd2
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons/web/static/src/scss')
| -rw-r--r-- | addons/web/static/src/scss/form_view_extra.scss | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/addons/web/static/src/scss/form_view_extra.scss b/addons/web/static/src/scss/form_view_extra.scss index b3157b0ace6..163d1212299 100644 --- a/addons/web/static/src/scss/form_view_extra.scss +++ b/addons/web/static/src/scss/form_view_extra.scss @@ -106,6 +106,9 @@ .o_form_sheet_bg, .o_form_sheet { border: none; } + .o_form_sheet_bg > .o_form_sheet { + min-height: 0; + } } } |
