Skip to content

Commit

Permalink
IBX-2520: Fix action buttons from the header overlapping with other t…
Browse files Browse the repository at this point in the history
…hings before adaptive items is initialized (#361)
  • Loading branch information
tischsoic authored Mar 14, 2022
1 parent 046f6d3 commit c618563
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,5 @@
});

adaptiveItems.init();
adapatItemsContainer.classList.remove('ibexa-context-menu--before-adaptive-items-init');
})(window, window.document, window.ibexa);
8 changes: 8 additions & 0 deletions src/bundle/Resources/public/scss/_context-menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@
margin: 0;
list-style: none;

&--before-adaptive-items-init {
overflow: hidden;
display: flex;
flex-wrap: wrap;
height: calculateRem(48px);
padding: 0;
}

&__item {
padding-left: calculateRem(16px);

Expand Down
6 changes: 6 additions & 0 deletions src/bundle/Resources/public/scss/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@
min-height: calculateRem(64px);
}

.ibexa-context-menu {
&--before-adaptive-items-init {
min-height: 0;
}
}

.ibexa-header-wrapper {
width: 100%;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<ul class="ibexa-context-menu">
<ul class="ibexa-context-menu ibexa-context-menu--before-adaptive-items-init">
{% set selector_btn_classes = selector_btn_classes|default('btn ibexa-btn ibexa-btn--secondary ibexa-btn--no-text') %}

{{ menu_items }}
Expand Down

0 comments on commit c618563

Please sign in to comment.