From e95d47b5d3a2659297146c83fd7489f53a0be43e Mon Sep 17 00:00:00 2001 From: prototypa Date: Sun, 4 Sep 2022 01:44:30 -0400 Subject: [PATCH] Fix bugs --- src/components/core/BasicScripts.astro | 4 ++-- src/components/widgets/Footer.astro | 10 +++++----- src/components/widgets/Header.astro | 3 +-- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/src/components/core/BasicScripts.astro b/src/components/core/BasicScripts.astro index 3d7e707..082981b 100644 --- a/src/components/core/BasicScripts.astro +++ b/src/components/core/BasicScripts.astro @@ -29,7 +29,7 @@ const {} = Astro.props; window.onload = function () { attachEvent("[data-aw-toggle-menu]", "click", function (elem) { elem.classList.toggle("expanded"); - document.documentElement.classList.toggle("overflow-hidden"); + document.body.classList.toggle("overflow-hidden"); document.getElementById("menu")?.classList.toggle("hidden"); }); @@ -43,7 +43,7 @@ const {} = Astro.props; if (elem) { elem.classList.remove("expanded"); } - document.documentElement.classList.remove("overflow-hidden"); + document.body.classList.remove("overflow-hidden"); document.getElementById("menu")?.classList.add("hidden"); }; diff --git a/src/components/widgets/Footer.astro b/src/components/widgets/Footer.astro index 187e012..4ae5b0b 100644 --- a/src/components/widgets/Footer.astro +++ b/src/components/widgets/Footer.astro @@ -173,7 +173,7 @@ const {} = Astro.props; aria-label="Twitter" href="#" > - +
  • @@ -182,7 +182,7 @@ const {} = Astro.props; aria-label="Instagram" href="#" > - +
  • @@ -191,7 +191,7 @@ const {} = Astro.props; aria-label="Facebook" href="#" > - +
  • @@ -200,7 +200,7 @@ const {} = Astro.props; aria-label="RSS" href="/rss.xml" > - +
  • @@ -209,7 +209,7 @@ const {} = Astro.props; aria-label="Github" href="https://github.com/onwidget/astrowind" > - +
  • diff --git a/src/components/widgets/Header.astro b/src/components/widgets/Header.astro index 4a0a4a7..c19db96 100644 --- a/src/components/widgets/Header.astro +++ b/src/components/widgets/Header.astro @@ -66,8 +66,7 @@ const {} = Astro.props; - Github + >Github