refactor: change class:list elements

This commit is contained in:
Vrezh Fedora 2025-06-22 15:02:27 +02:00
parent 3ee3300f5c
commit b2173fc074
No known key found for this signature in database
GPG key ID: 4F9848118BFDF1F9

View file

@ -97,13 +97,8 @@ const {
</Dropdown>
<a
class:list={[
'hidden',
'items-center',
'hover:bg-muted',
'rounded-lg',
'p-3',
'lg:block',
{ 'text-coral': Astro.url.pathname === getLocalePath('/about') },
'items-center rounded-lg p-3 hover:bg-muted',
Astro.url.pathname === getLocalePath('/about') && 'text-coral',
]}
href={getLocalePath('/about')}
>
@ -111,13 +106,8 @@ const {
</a>
<a
class:list={[
'hidden',
'items-center',
'hover:bg-muted',
'rounded-lg',
'p-3',
'lg:block',
{ 'text-coral': Astro.url.pathname === getLocalePath('/mods') },
'items-center rounded-lg p-3 hover:bg-muted',
Astro.url.pathname === getLocalePath('/mods') && 'text-coral',
]}
href={getLocalePath('/mods')}
>