Unverified Commit 80ba63ed 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
parent 399fe1c2
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';
  }
}