diff --git a/components/ContentType/LoyaltyPage.tsx b/components/ContentType/LoyaltyPage.tsx index 1302a804f..e0cb7b42a 100644 --- a/components/ContentType/LoyaltyPage.tsx +++ b/components/ContentType/LoyaltyPage.tsx @@ -8,12 +8,11 @@ import styles from "./loyaltyPage.module.css" export default async function LoyaltyPage() { const loyaltyPage = await serverClient().contentstack.loyaltyPage.get() - const hasSidebar = !!loyaltyPage.sidebar.length return ( -
- {hasSidebar && } +
+ {loyaltyPage.sidebar.length ? ( + + ) : null} {loyaltyPage.blocks ? : null} diff --git a/components/ContentType/loyaltyPage.module.css b/components/ContentType/loyaltyPage.module.css index 12d7cc0db..46bc93ea9 100644 --- a/components/ContentType/loyaltyPage.module.css +++ b/components/ContentType/loyaltyPage.module.css @@ -13,10 +13,6 @@ } @media screen and (min-width: 950px) { - .hasLeftSidebar { - grid-template-columns: 30rem 1fr; - } - .content { gap: 2.7rem; padding-bottom: 17.5rem; @@ -25,6 +21,10 @@ padding-top: 5.8rem; } + .content:has(> aside) { + grid-template-columns: 30rem 1fr; + } + .blocks { gap: 6.4rem; padding-left: 0;