Skip to content

Commit

Permalink
Fixed extra margin spacing in collage section when header is empty (#…
Browse files Browse the repository at this point in the history
…2770)

* added a conditional to only render an h2 when there is a heading

* added whitespace management dashes
  • Loading branch information
lougoncharenko committed Aug 9, 2023
1 parent 7d02769 commit 72b0267
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions sections/collage.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@
{%- endstyle -%}

<div class="color-{{ section.settings.color_scheme }} gradient isolate">
<div class="page-width{% if section.settings.heading == blank %} no-heading{% endif %} section-{{ section.id }}-padding">
<h2 class="collage-wrapper-title inline-richtext {{ section.settings.heading_size }}{% if settings.animations_reveal_on_scroll %} scroll-trigger animate--slide-in{% endif %}">
{{ section.settings.heading }}
</h2>
<div class="page-width section-{{ section.id }}-padding">
{%- if section.settings.heading != blank -%}
<h2 class="collage-wrapper-title inline-richtext {{ section.settings.heading_size }}{% if settings.animations_reveal_on_scroll %} scroll-trigger animate--slide-in{% endif %}">
{{ section.settings.heading }}
</h2>
{%- endif -%}
<div class="collage{% if section.settings.mobile_layout == 'collage' %} collage--mobile{% endif %}">
{%- for block in section.blocks -%}
<div
Expand Down

0 comments on commit 72b0267

Please sign in to comment.