Skip to content

Commit

Permalink
Update header.component.ts and section.component.ts.
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseAlvesdev committed Jun 3, 2024
1 parent 644bb9c commit 8dd2673
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/header.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ if (wrapperButtonsHeader !== null) {

function responsiveUpdate() {
wrapperButtonsHeader.classList.remove(
screen.width < 992 ? 'o-flex-container-def' : 'o-flex-container-col'
window.innerWidth < 992 ? 'o-flex-container-def' : 'o-flex-container-col'
);
wrapperButtonsHeader.classList.add(
screen.width >= 992 ? 'o-flex-container-def' : 'o-flex-container-col'
window.innerWidth >= 992 ? 'o-flex-container-def' : 'o-flex-container-col'
);
}

Expand Down
4 changes: 2 additions & 2 deletions src/components/section.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ function responsiveUpdate() {

for (i of range(0, secQty - 1)) {
mainContent.children[i].children[0].children[0].classList.remove(
screen.width >= 992 ? 'o-flex-container-col' : 'o-grid-container-2cr'
window.innerWidth >= 992 ? 'o-flex-container-col' : 'o-grid-container-2cr'
);
mainContent.children[i].children[0].children[0].classList.add(
screen.width >= 992 ? 'o-grid-container-2cr' : 'o-flex-container-col'
window.innerWidth >= 992 ? 'o-grid-container-2cr' : 'o-flex-container-col'
);

if (i % 2 === 1 && i < secQty - 1)
Expand Down

0 comments on commit 8dd2673

Please sign in to comment.