Skip to content

Commit

Permalink
fix(website): make right-click ➝ /branding only for logo, not entire …
Browse files Browse the repository at this point in the history
…navbar (#1553)
  • Loading branch information
mrienstra authored Sep 5, 2023
1 parent e345e56 commit db6a204
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

2 comments on commit db6a204

@vercel
Copy link

@vercel vercel bot commented on db6a204 Sep 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on db6a204 Sep 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

t3-upgrade – ./upgrade

t3-upgrade-t3-oss.vercel.app
t3-upgrade.vercel.app
t3-upgrade-git-next-t3-oss.vercel.app

Please sign in to comment.