aboutsummaryrefslogtreecommitdiff
path: root/apps/website/src/components/base/navbar/NavbarElement.astro
diff options
context:
space:
mode:
authorLynithDev <61880709+LynithDev@users.noreply.github.com>2024-01-01 18:49:26 +0100
committerLynithDev <61880709+LynithDev@users.noreply.github.com>2024-01-01 18:49:26 +0100
commit107c80b8491beb9d33240cd11fa2a358b3e1b2d5 (patch)
treef3c5e9f7d5473a1d65cffe0bb4d2f97ebc0406d7 /apps/website/src/components/base/navbar/NavbarElement.astro
parent7e3cff959183386f5120acf1eb956ee41f7bd713 (diff)
downloadNexus-107c80b8491beb9d33240cd11fa2a358b3e1b2d5.tar.gz
Nexus-107c80b8491beb9d33240cd11fa2a358b3e1b2d5.tar.bz2
Nexus-107c80b8491beb9d33240cd11fa2a358b3e1b2d5.zip
Changed mods page a little + fix padding on index
Diffstat (limited to 'apps/website/src/components/base/navbar/NavbarElement.astro')
-rw-r--r--apps/website/src/components/base/navbar/NavbarElement.astro2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/website/src/components/base/navbar/NavbarElement.astro b/apps/website/src/components/base/navbar/NavbarElement.astro
index 3033bf1..c2c76b3 100644
--- a/apps/website/src/components/base/navbar/NavbarElement.astro
+++ b/apps/website/src/components/base/navbar/NavbarElement.astro
@@ -35,7 +35,7 @@ function isCurrentPage(url: string): boolean {
: (
<label for={`navbar-input-${index}`} class="group">
{element.dropdown && (
- <p class={`p-2 flex flex-row justify-center items-center hover:text-blue-500 cursor-default ${isCurrentPage(element.dropdown[0].path) ? 'text-blue-400' : 'text-gray-700'}`}>
+ <p class={`p-2 flex flex-row justify-center items-center hover:text-blue-500 cursor-default ${isCurrentPage(element.dropdown[0].path ?? '') ? 'text-blue-400' : 'text-gray-700'}`}>
{element.text && element.text}
{element.logo && <Logo size={element.logo[1] < 0 ? undefined : element.logo[1]} logo={element.logo[0] as LogoType}/>}
{element.dropdown && <Icon icon="chevron-down"/>}