diff options
| author | Simon Lejeune <sle@openerp.com> | 2014-09-08 19:00:05 +0200 |
|---|---|---|
| committer | Simon Lejeune <sle@openerp.com> | 2014-09-08 19:00:52 +0200 |
| commit | 9f0834771d49a76ab7d7187120f9289e4dccfe18 (patch) | |
| tree | 47aadb60e254bc55ed19b17dd4c237cd838a5ac0 | |
| parent | c12a2e1d1650d308e39cc2b396a76eed579e2595 (diff) | |
[FIX] web: base.css: fixed width for input of file type under oe_avatar
Browsers add different width to input of file type, messing up the usability of the
product formview placing a 'phantom' box in front of the options. Added a specific
css rule for this case.
| -rw-r--r-- | addons/web/static/src/css/base.css | 3 | ||||
| -rw-r--r-- | addons/web/static/src/css/base.sass | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/addons/web/static/src/css/base.css b/addons/web/static/src/css/base.css index edd6651b431..5e40401c89d 100644 --- a/addons/web/static/src/css/base.css +++ b/addons/web/static/src/css/base.css @@ -2267,6 +2267,9 @@ margin: 0; padding: 0; } +.openerp .oe_avatar .oe_hidden_input_file input.oe_form_binary_file { + width: 90px; +} .openerp .oe_form .oe_form_field_binary { display: inline-block; } diff --git a/addons/web/static/src/css/base.sass b/addons/web/static/src/css/base.sass index 955039e0275..e77c1e9486d 100644 --- a/addons/web/static/src/css/base.sass +++ b/addons/web/static/src/css/base.sass @@ -1872,6 +1872,8 @@ $sheet-padding: 16px -ms-filter: "alpha(opacity=0)" margin: 0 padding: 0 + .oe_avatar .oe_hidden_input_file input.oe_form_binary_file + width: 90px .oe_form .oe_form_field_binary display: inline-block |
