[FIX] web: empty fields don't increase row height

Commit [1] tweaked the empty (unset) fields css rules s.t. they
have a non null height in readonly, to reduce the shift between
readonly and editable form view. This only concerns form view,
but the changed rule also applied in list view. As a consequence,
empty fields increased the rows height in list views.

https://github.com/odoo/odoo/commit/288b24cbdf54ac0dbee7e012f074fac9a0c68238

closes odoo/odoo#68482

X-original-commit: 020b814b3be055c6bf795153dce6079810d34b1c
Signed-off-by: Michaël Mattiello <mcm-odoo@users.noreply.github.com>
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
This commit is contained in:
Aaron Bohy
2021-03-29 15:24:24 +00:00
parent 4bc3c9303a
commit 835cb1d593
2 changed files with 6 additions and 2 deletions
+2 -2
View File
@@ -12,8 +12,8 @@
}
// Empty
.o_field_empty:empty {
min-height: $font-size-base * $line-height-base;
.o_field_empty {
display: none;
}
// Numbers
@@ -68,6 +68,10 @@ $o-form-label-margin-right: 0px;
float: right!important;
}
.o_field_empty:empty {
min-height: $font-size-base * $line-height-base;
}
.o_row {
&, &.o_field_widget { // Some field may want to use o_row as root and these rules must prevalue
display: flex;