Unverified Commit 79ad4249 authored by Lauri Timmanee's avatar Lauri Timmanee
Browse files

Issue #3256433 by andregp, Abhijith S, awangsetyawan, DuneBL, mherchel:...

Issue #3256433 by andregp, Abhijith S, awangsetyawan, DuneBL, mherchel: wide-image class should not be added for user pictures

(cherry picked from commit 80ba63ed)
parent e7eb443f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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';
  }
}