diff --git a/css/backoffice/components/_panel.scss b/css/backoffice/components/_panel.scss index 134d5ba21..993f8bf55 100644 --- a/css/backoffice/components/_panel.scss +++ b/css/backoffice/components/_panel.scss @@ -185,16 +185,20 @@ $ibo-panel--is-selectable--body--after--font-size: $ibo-font-size-700 !default; .ibo-panel--icon-img, .ibo-panel--icon-background { // second class is deprecated, remove it when dealing with N°9317 width: 100%; height: 100%; + object-position: center; + object-fit: $ibo-panel--icon-img--size--must-contain; background-position: center; background-repeat: no-repeat; background-size: $ibo-panel--icon-img--size--must-contain; } .ibo-panel--icon-img--must-contain, .ibo-panel--icon-background--must-contain { // second class is deprecated, remove it when dealing with N°9317 + object-fit: $ibo-panel--icon-img--size--must-contain; background-size: $ibo-panel--icon-img--size--must-contain; } .ibo-panel--icon-img--must-cover, .ibo-panel--icon-background--must-cover { // second class is deprecated, remove it when dealing with N°9317 + object-fit: $ibo-panel--icon-img--size--must-cover; background-size: $ibo-panel--icon-img--size--must-cover; } diff --git a/css/backoffice/components/_title.scss b/css/backoffice/components/_title.scss index de0ef6741..f61e1ddd5 100644 --- a/css/backoffice/components/_title.scss +++ b/css/backoffice/components/_title.scss @@ -66,7 +66,8 @@ $ibo-title--icon-img--size--must-zoomout: $ibo-title--icon-background--size--mus } .ibo-title--icon-img--must-zoomout, .ibo-title--icon-background--must-zoomout { // second class is deprecated, remove it when dealing with N°9317 - background-size: $ibo-title--icon-img--size--must-zoomout; + width: $ibo-title--icon-img--size--must-zoomout; + height: $ibo-title--icon-img--size--must-zoomout; } .ibo-title--for-object-details {