Fix navigation updates
This commit is contained in:
@@ -73,8 +73,7 @@
|
|||||||
{#each Routes.sidebarRoutes as route}
|
{#each Routes.sidebarRoutes as route}
|
||||||
<li>
|
<li>
|
||||||
<a
|
<a
|
||||||
class:border-b-2={`/${window.location.pathname.split("/")[1]}` ==
|
class:border-b-2={isCurrentPath(route.url)}
|
||||||
route.url}
|
|
||||||
class="border-b-0 border-accent transition-colors hover:text-accent"
|
class="border-b-0 border-accent transition-colors hover:text-accent"
|
||||||
href={route.url}
|
href={route.url}
|
||||||
target={route.target}
|
target={route.target}
|
||||||
@@ -111,7 +110,7 @@
|
|||||||
href={route.url}
|
href={route.url}
|
||||||
target={route.target}
|
target={route.target}
|
||||||
class={`flex flex-col items-center decoration-accent transition-opacity ${
|
class={`flex flex-col items-center decoration-accent transition-opacity ${
|
||||||
`/${window.location.pathname.split("/")[1]}` == route.url
|
isCurrentPath(route.url)
|
||||||
? "underline opacity-100"
|
? "underline opacity-100"
|
||||||
: "opacity-50"
|
: "opacity-50"
|
||||||
}`}
|
}`}
|
||||||
|
|||||||
Reference in New Issue
Block a user