mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
fix: center-align text in login and registration links in navbar
This commit is contained in:
@@ -122,13 +122,13 @@
|
|||||||
{:else}
|
{:else}
|
||||||
<a
|
<a
|
||||||
href={resolve(`/login${returnParam}`)}
|
href={resolve(`/login${returnParam}`)}
|
||||||
class="mt-1 block w-full rounded bg-neutral-800 px-3 py-2 text-neutral-100 transition-colors hover:bg-neutral-700"
|
class="mt-1 block w-full rounded bg-neutral-800 px-3 py-2 text-center text-neutral-100 transition-colors hover:bg-neutral-700"
|
||||||
on:click={() => (menuOpen = false)}>Login</a
|
on:click={() => (menuOpen = false)}>Login</a
|
||||||
>
|
>
|
||||||
<!-- eslint-disable svelte/no-navigation-without-resolve -->
|
<!-- eslint-disable svelte/no-navigation-without-resolve -->
|
||||||
<a
|
<a
|
||||||
href={data.options?.registration_enabled ? resolve(`/register${returnParam}`) : '#'}
|
href={data.options?.registration_enabled ? resolve(`/register${returnParam}`) : '#'}
|
||||||
class="mt-1 block w-full rounded px-3 py-2 text-neutral-100 transition-colors hover:bg-neutral-700 {data
|
class="mt-1 block w-full rounded bg-neutral-800 px-3 py-2 text-center text-neutral-100 transition-colors hover:bg-neutral-700 {data
|
||||||
.options?.registration_enabled
|
.options?.registration_enabled
|
||||||
? ''
|
? ''
|
||||||
: 'cursor-not-allowed bg-neutral-900 text-neutral-500'}"
|
: 'cursor-not-allowed bg-neutral-900 text-neutral-500'}"
|
||||||
|
|||||||
Reference in New Issue
Block a user