From 80ba63ed075063c393c75ed1d6d39383893eee16 Mon Sep 17 00:00:00 2001 From: Lauri Eskola <lauri.eskola@acquia.com> Date: Tue, 1 Feb 2022 11:21:41 +0200 Subject: [PATCH] Issue #3256433 by andregp, Abhijith S, awangsetyawan, DuneBL, mherchel: wide-image class should not be added for user pictures --- core/themes/olivero/olivero.theme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/themes/olivero/olivero.theme b/core/themes/olivero/olivero.theme index 2032f818892e..b9b68c23a6ec 100644 --- a/core/themes/olivero/olivero.theme +++ b/core/themes/olivero/olivero.theme @@ -359,7 +359,7 @@ function olivero_preprocess_field(&$variables) { $variables['attributes']['class'][] = 'text-content'; } - if ($variables['field_type'] == 'image' && $variables['element']['#view_mode'] == 'full' && !$variables["element"]["#is_multiple"]) { + if ($variables['field_type'] == 'image' && $variables['element']['#view_mode'] == 'full' && !$variables["element"]["#is_multiple"] && $variables['field_name'] !== 'user_picture') { $variables['attributes']['class'][] = 'wide-image'; } } -- GitLab