Openworx / backend_theme

Odoo Backend Theme
156 stars 242 forks source link

Calculate oe_title width to let space for avatar on the right #100

Closed clementmbr closed 3 years ago

clementmbr commented 4 years ago

Hi @mgielissen ,

I've just used your latest backend_theme_v12 module today and even if at first I was surprised by the avatar on the right, I think it's quite a good improvement for the majority of the partners who will never have pictures.

However I noticed that you modified the oe_title class with no padding on the right, which leave a big blank space in Edit mode : image

So in this PR I would suggest to override the calculation made on the web_responsive module for long oe_title width and subtract more 110px for the avatar space : image

Hope you agree with it !

Regards,

clementmbr commented 3 years ago

Hi @mgielissen , I've justed updated my PR to solve this oe_title size also in the User form view case.

Before : image

After : image

Looking forward to know what you think about this suggestion. Regards,

mgielissen commented 3 years ago

LGTM