Skip to content

Commit

Permalink
Update layout--two-column.html.twig
Browse files Browse the repository at this point in the history
Updated two column layout to be flex-grow-1 for each column and to check if the column is empty (mainly for the sake of empty menus) for rendering purposes.
  • Loading branch information
jnicholCU committed Apr 25, 2024
1 parent 61c3dd0 commit e1601cb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions layouts/two-column/layout--two-column.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@
<div class="ucb-boostrap-layout-section ucb-bootstrap-layout__background-color--{{ settings.background_color }} {{ row_overlay_settings }} {{ row_background_effect }}" style="{{ settings.background_image_styles }}">
<div class="container">
<div {{attributes.addClass(row_classes, frame_classes|join(' '))}}>
{% if content.first %}
<div {{ region_attributes.first.addClass('column', 'col-lg-' ~ column_widths.0, 'column--first', 'col-12') }}>
{% if (content.first) and (content.first|render|striptags|trim != "") %}
<div {{ region_attributes.first.addClass('column', 'col-lg-' ~ column_widths.0, 'column--first', 'col-12', 'flex-grow-1') }}>
{{ content.first }}
</div>
{% endif %}
{% if content.second %}
<div {{ region_attributes.second.addClass('column', 'col-lg-' ~ column_widths.1, 'column--second', 'col-12') }}>
{% if (content.second) and (content.second|render|striptags|trim != "") %}
<div {{ region_attributes.second.addClass('column', 'col-lg-' ~ column_widths.1, 'column--second', 'col-12', 'flex-grow-1') }}>
{{ content.second }}
</div>
{% endif %}
Expand Down

0 comments on commit e1601cb

Please sign in to comment.