From 9f0834771d49a76ab7d7187120f9289e4dccfe18 Mon Sep 17 00:00:00 2001 From: Simon Lejeune Date: Mon, 8 Sep 2014 19:00:05 +0200 Subject: [PATCH] [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. --- addons/web/static/src/css/base.css | 3 +++ addons/web/static/src/css/base.sass | 2 ++ 2 files changed, 5 insertions(+) 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