Skip to content

Commit

Permalink
Merge branch 'next' into drizzle
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusmarminge authored Sep 6, 2023
2 parents 3b365f1 + db6a204 commit 74af6b3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions www/src/components/navigation/navbar.astro
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,11 @@ const navbarLinks: Array<{ href: string; label: string }> = [
},
]}
aria-label="Global"
data-navbar
>
<div class="flex w-full max-w-7xl items-center justify-between px-4">
<div class="flex w-full items-center justify-between md:w-auto">
<div>
<a href="/" class="flex" title="Home">
<a href="/" class="flex" title="Home" data-home-link>
<img
class="block dark:hidden"
width="50"
Expand Down Expand Up @@ -114,7 +113,7 @@ const navbarLinks: Array<{ href: string; label: string }> = [
</div>
</nav>
<script>
const logo = document.querySelector("[data-navbar]") as HTMLElement;
const logo = document.querySelector("[data-home-link]") as HTMLAnchorElement;

logo.addEventListener("contextmenu", (e) => {
e.preventDefault();
Expand Down

0 comments on commit 74af6b3

Please sign in to comment.