From 8dd2673948465f7f948afd82a8387bf111619967 Mon Sep 17 00:00:00 2001 From: josehenriques10 Date: Mon, 3 Jun 2024 11:27:24 -0300 Subject: [PATCH] Update header.component.ts and section.component.ts. --- src/components/header.component.ts | 4 ++-- src/components/section.component.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/header.component.ts b/src/components/header.component.ts index ad9daf3..d5727c6 100644 --- a/src/components/header.component.ts +++ b/src/components/header.component.ts @@ -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' ); } diff --git a/src/components/section.component.ts b/src/components/section.component.ts index 4a91e66..631c535 100644 --- a/src/components/section.component.ts +++ b/src/components/section.component.ts @@ -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)