diff --git a/core/attributedef.class.inc.php b/core/attributedef.class.inc.php index 7681996d5..999fe3aa8 100644 --- a/core/attributedef.class.inc.php +++ b/core/attributedef.class.inc.php @@ -8611,7 +8611,7 @@ class AttributeImage extends AttributeBlob $sCssClasses .= ' '.(($bIsCustomImage) ? 'attribute-image-custom' : 'attribute-image-default'); // Important: If you change this, mind updating edit_image.js as well - return '
'.$sRet.'
'; + return '
'.$sRet.'
'; } /** @@ -8625,7 +8625,7 @@ class AttributeImage extends AttributeBlob * @since 2.7.0 change visibility to protected */ protected function GetHtmlForImageUrl($sUrl, $iMaxWidthPx, $iMaxHeightPx) { - return ''; + return ''; } /** diff --git a/css/backoffice/components/_field.scss b/css/backoffice/components/_field.scss index 58094cc41..642715bd2 100644 --- a/css/backoffice/components/_field.scss +++ b/css/backoffice/components/_field.scss @@ -64,11 +64,22 @@ $ibo-field--enable-bulk--checkbox--margin-left: $ibo-spacing-300 !default; word-break: break-word; white-space: inherit; } + & pre { white-space: break-spaces; } } } + /* We need the rule to keep picture inside the column */ + &[data-attribute-type="AttributeImage"] { + > .ibo-field--value { + display: grid; + + > span { + display: inherit; + } + } + } } /* Large field = Label on top, value below */ diff --git a/js/edit_image.js b/js/edit_image.js index 4ebde2c6f..ccabe6536 100644 --- a/js/edit_image.js +++ b/js/edit_image.js @@ -71,7 +71,7 @@ $(function() let sMarkup = `
- +