mirror of
https://github.com/zen-browser/www.git
synced 2025-07-07 17:05:32 +02:00
refactor: change class:list elements
This commit is contained in:
parent
3ee3300f5c
commit
b2173fc074
1 changed files with 4 additions and 14 deletions
|
@ -97,13 +97,8 @@ const {
|
||||||
</Dropdown>
|
</Dropdown>
|
||||||
<a
|
<a
|
||||||
class:list={[
|
class:list={[
|
||||||
'hidden',
|
'items-center rounded-lg p-3 hover:bg-muted',
|
||||||
'items-center',
|
Astro.url.pathname === getLocalePath('/about') && 'text-coral',
|
||||||
'hover:bg-muted',
|
|
||||||
'rounded-lg',
|
|
||||||
'p-3',
|
|
||||||
'lg:block',
|
|
||||||
{ 'text-coral': Astro.url.pathname === getLocalePath('/about') },
|
|
||||||
]}
|
]}
|
||||||
href={getLocalePath('/about')}
|
href={getLocalePath('/about')}
|
||||||
>
|
>
|
||||||
|
@ -111,13 +106,8 @@ const {
|
||||||
</a>
|
</a>
|
||||||
<a
|
<a
|
||||||
class:list={[
|
class:list={[
|
||||||
'hidden',
|
'items-center rounded-lg p-3 hover:bg-muted',
|
||||||
'items-center',
|
Astro.url.pathname === getLocalePath('/mods') && 'text-coral',
|
||||||
'hover:bg-muted',
|
|
||||||
'rounded-lg',
|
|
||||||
'p-3',
|
|
||||||
'lg:block',
|
|
||||||
{ 'text-coral': Astro.url.pathname === getLocalePath('/mods') },
|
|
||||||
]}
|
]}
|
||||||
href={getLocalePath('/mods')}
|
href={getLocalePath('/mods')}
|
||||||
>
|
>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue