Skip to content
Snippets Groups Projects

3023322 - Contextual Links Style Update

7 unresolved threads
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
  • 79ad4249
    Issue #3256433 by andregp, Abhijith S, awangsetyawan, DuneBL, mherchel:... · 79ad4249
    Lauri Timmanee authored
    Issue #3256433 by andregp, Abhijith S, awangsetyawan, DuneBL, mherchel: wide-image class should not be added for user pictures
    
    (cherry picked from commit 80ba63ed)
@@ -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';
}
}
Loading