diff --git a/addons/web/static/src/views/form/form_controller.scss b/addons/web/static/src/views/form/form_controller.scss index dfa6f2faadf..4dec998b667 100644 --- a/addons/web/static/src/views/form/form_controller.scss +++ b/addons/web/static/src/views/form/form_controller.scss @@ -173,8 +173,6 @@ } .oe_title { - max-width: 75%; - .o_field_char { width: 100%; } @@ -368,9 +366,11 @@ // Title .oe_title { color: $headings-color; - @include media-breakpoint-up(vsm, $o-extra-grid-breakpoints) { - padding-right: $o-innergroup-rpadding; + + @include media-breakpoint-up(sm) { + max-width: 75%; } + > h1, > h2, > h3 { width: 100%; // Needed because inline-block when is a hx.o_row margin-top: 0; @@ -390,9 +390,6 @@ > h2 { min-height: 42px; } - .oe_avatar + & { - padding-right: $o-avatar-size + 10; - } } // Avatar @@ -400,12 +397,18 @@ float: right; margin-bottom: 10px; - > div > img { + .img { max-width: $o-avatar-size; max-height: $o-avatar-size; vertical-align: top; border: 1px solid $o-gray-300; } + + @include media-breakpoint-down(sm) { + + .oe_title { + max-width: calc(100% - #{$o-avatar-size} - #{map-get($spacers, 2)}); + } + } } // Status dropdown