Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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';
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment