Skip to content

Commit

Permalink
Fix card layout
Browse files Browse the repository at this point in the history
  • Loading branch information
occupant committed Jan 10, 2025
1 parent 9b58c7e commit 15754d5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion components/card--primary/card--primary.twig
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
]
%}
{% set figure_classes = [
'mt-0',
'ubc-card__media',
'img-cover',
'overflow-hidden',
Expand Down Expand Up @@ -56,13 +55,21 @@
'sm--flex-row',
]
%}
{% set figure_layout_classes = [
'mt-0',
]
%}
{% endif %}
{% if layout is same as 'ubc-card--horiz-rev' %}
{% set layout_classes = [
'sm--flex',
'sm--flex-row-reverse',
]
%}
{% set figure_layout_classes = [
'mt-0',
]
%}
{% endif %}
{% if layout is same as 'ubc-card--horiz' or layout is same as 'ubc-card--horiz-rev' %}
{% set figure_layout_classes = [
Expand Down

0 comments on commit 15754d5

Please sign in to comment.