Skip to content

Commit

Permalink
show sidebar when close btn is present
Browse files Browse the repository at this point in the history
  • Loading branch information
tischsoic committed Dec 11, 2023
1 parent efa3df8 commit 6f896ce
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/bundle/Resources/public/scss/_anchor-navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@

&__close {
font-weight: 600;
margin-right: calculateRem(20px);
}

&__section-groups {
Expand Down
11 changes: 10 additions & 1 deletion src/bundle/Resources/public/scss/_main-container.scss
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,16 @@
.ibexa-main-container {
&__side-column {
min-width: 0;
width: 0;
}
}

&.ibexa-main-container {
&--without-anchor-close-btn {
.ibexa-main-container {
&__side-column {
width: 0;
}
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
ibexa-main-container--edit-container

{%- set has_anchor_menu_items = anchor_params.items|default([])|length > 1 -%}
{{ has_anchor_menu_items ? ' ibexa-main-container--with-anchor-menu-items' : ' ibexa-main-container--without-anchor-menu-items' }}
{%- set has_anchor_close_btn = anchor_params.close_href|default(null) is not empty -%}

{{- has_anchor_menu_items ? ' ibexa-main-container--with-anchor-menu-items ' : ' ibexa-main-container--without-anchor-menu-items ' -}}
{{- not has_anchor_close_btn ? ' ibexa-main-container--without-anchor-close-btn ' -}}
{% endblock %}

{% block header_row %}{% endblock %}
Expand Down

0 comments on commit 6f896ce

Please sign in to comment.