aboutsummaryrefslogtreecommitdiff
path: root/apps/website/src/components
diff options
context:
space:
mode:
authorLynithDev <61880709+LynithDev@users.noreply.github.com>2023-12-28 13:06:11 +0100
committerLynithDev <61880709+LynithDev@users.noreply.github.com>2023-12-28 13:06:11 +0100
commit98f4ee1dc2f505b0caa9c08b05935b78cc206007 (patch)
tree3278d3efd2308044e9a4ef5113d11c98d2d99056 /apps/website/src/components
parent092ad3a326145c17eb0a6967e284cc03d57c1851 (diff)
downloadNexus-98f4ee1dc2f505b0caa9c08b05935b78cc206007.tar.gz
Nexus-98f4ee1dc2f505b0caa9c08b05935b78cc206007.tar.bz2
Nexus-98f4ee1dc2f505b0caa9c08b05935b78cc206007.zip
Fine tuned view transition
Diffstat (limited to 'apps/website/src/components')
-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 0fe544b..9aec193 100644
--- a/apps/website/src/components/base/navbar/NavbarElement.astro
+++ b/apps/website/src/components/base/navbar/NavbarElement.astro
@@ -28,7 +28,7 @@ function isCurrentPage(url: string): boolean {
? (
<a href={element.path} class={`p-2 flex flex-row justify-center items-center hover:text-blue-500 ${isCurrentPage(element.path) ? 'text-blue-400' : 'text-gray-700'}`}>
{element.text && element.text}
- {element.logo && <Logo class="active:scale-95 transition-transform" size={element.logo[1] < 0 ? undefined : element.logo[1]} logo={element.logo[0] as LogoType}/>}
+ {element.logo && <Logo transition:persist class="active:scale-95 transition-transform" size={element.logo[1] < 0 ? undefined : element.logo[1]} logo={element.logo[0] as LogoType}/>}
{element.dropdown && <Icon icon="chevron-down"/>}
</a>
)