diff --git a/addons/web/static/src/css/base.css b/addons/web/static/src/css/base.css index 848886dde0c..a87b6814ec6 100644 --- a/addons/web/static/src/css/base.css +++ b/addons/web/static/src/css/base.css @@ -1733,6 +1733,9 @@ .openerp .oe_form_readonly .oe_edit_only, .openerp .oe_form_readonly .oe_form_field:empty { display: none !important; } +.openerp .oe_form_readonly .oe_form .oe_form_field_date { + width: auto; +} .openerp .oe_form_nosheet { margin-left: 10px; margin-right: 10px; @@ -1863,7 +1866,7 @@ width: 100%; margin: 4px 0 4px 0; } -.openerp .oe_form .oe_form_group .oe_group_right > tbody > tr > td { +.openerp .oe_form .oe_form_group .oe_group_right > tbody > tr > td:first-child { padding-left: 12px; } .openerp .oe_form .oe_form_label_help[for], .openerp .oe_form .oe_form_label[for] { @@ -1965,7 +1968,7 @@ width: 180px; } .openerp .oe_form .oe_form_field_date { - width: 7em; + width: 7.5em; } .openerp .oe_form .oe_form_field_datetime { width: 11em; diff --git a/addons/web/static/src/css/base.sass b/addons/web/static/src/css/base.sass index e789d116e95..da1acbe2a5a 100644 --- a/addons/web/static/src/css/base.sass +++ b/addons/web/static/src/css/base.sass @@ -1351,6 +1351,8 @@ $sheet-max-width: 860px .oe_form_readonly .oe_edit_only, .oe_form_field:empty display: none !important + .oe_form .oe_form_field_date + width: auto .oe_form_nosheet margin-left: 10px margin-right: 10px @@ -1454,7 +1456,7 @@ $sheet-max-width: 860px width: 100% margin: 4px 0 4px 0 .oe_group_right - > tbody > tr > td + > tbody > tr > td:first-child padding-left: 12px // }}} // FormView.label {{{ @@ -1538,7 +1540,7 @@ $sheet-max-width: 860px .oe_form_field_float width: 180px .oe_form_field_date - width: 7em + width: 7.5em .oe_form_field_datetime width: 11em input[type="text"], input[type="password"], input[type="file"], select