fix: cursor-pointer shenanigans
This commit is contained in:
4 files changed
+10
-9
No files matched your search
@@ -22,11 +22,13 @@
|
|||||||
}: Props = $props()
|
}: Props = $props()
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Disclosure {extended} bind:open class=" gap-2 {clazz}">
|
<Disclosure {extended} bind:open class={['gap-2', clazz]}>
|
||||||
{#snippet summary()}
|
{#snippet summary()}
|
||||||
<div
|
<div
|
||||||
class="font-medium w-full text-left flex flex-row items-center justify-between hover:text-primary-900
|
class={[
|
||||||
dark:hover:text-primary-100 transition-colors h-full z-0 group relative"
|
'font-medium w-full text-left flex flex-row items-center justify-between hover:text-primary-900',
|
||||||
|
'dark:hover:text-primary-100 transition-colors h-full z-0 group relative cursor-pointer',
|
||||||
|
]}
|
||||||
>
|
>
|
||||||
<div class="flex flex-row gap-1 items-center w-full">
|
<div class="flex flex-row gap-1 items-center w-full">
|
||||||
{@render title?.(open)}
|
{@render title?.(open)}
|
||||||
|
|||||||
@@ -50,7 +50,7 @@
|
|||||||
}}
|
}}
|
||||||
href="/"
|
href="/"
|
||||||
label={$t('nav.home')}
|
label={$t('nav.home')}
|
||||||
class="ml-2 lg:ml-2 logo border-0 lg:rounded-full! lg:w-10 lg:h-10 lg:p-0!"
|
class="ml-2 lg:ml-2 logo border-0 lg:rounded-full! lg:w-10! lg:h-10 lg:px-0!"
|
||||||
adaptive={false}
|
adaptive={false}
|
||||||
>
|
>
|
||||||
{#snippet customIcon()}
|
{#snippet customIcon()}
|
||||||
|
|||||||
@@ -13,6 +13,7 @@
|
|||||||
Select,
|
Select,
|
||||||
Spinner,
|
Spinner,
|
||||||
toast,
|
toast,
|
||||||
|
Option,
|
||||||
} from 'mono-svelte'
|
} from 'mono-svelte'
|
||||||
import Avatar from '../Avatar.svelte'
|
import Avatar from '../Avatar.svelte'
|
||||||
import {
|
import {
|
||||||
@@ -38,9 +39,6 @@
|
|||||||
import { site } from '$lib/lemmy.svelte'
|
import { site } from '$lib/lemmy.svelte'
|
||||||
import SiteCard from '$lib/components/lemmy/SiteCard.svelte'
|
import SiteCard from '$lib/components/lemmy/SiteCard.svelte'
|
||||||
import { t } from '$lib/translations'
|
import { t } from '$lib/translations'
|
||||||
import UserLink from '$lib/components/lemmy/user/UserLink.svelte'
|
|
||||||
import Option from 'mono-svelte/forms/select/Option.svelte'
|
|
||||||
import { env } from '$env/dynamic/public'
|
|
||||||
|
|
||||||
let showInstance = $state(false)
|
let showInstance = $state(false)
|
||||||
|
|
||||||
@@ -72,7 +70,7 @@
|
|||||||
<button
|
<button
|
||||||
class="w-10 h-10 rounded-full border-slate-200 dark:border-zinc-700
|
class="w-10 h-10 rounded-full border-slate-200 dark:border-zinc-700
|
||||||
transition-all bg-slate-50 dark:bg-zinc-900 relative
|
transition-all bg-slate-50 dark:bg-zinc-900 relative
|
||||||
hover:bg-slate-200 dark:hover:bg-zinc-700 group {buttonClass}"
|
hover:bg-slate-200 dark:hover:bg-zinc-700 group cursor-pointer {buttonClass}"
|
||||||
title={$t('profile.profile')}
|
title={$t('profile.profile')}
|
||||||
>
|
>
|
||||||
{#if profile.data?.user}
|
{#if profile.data?.user}
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { backOut, expoOut } from 'svelte/easing'
|
import { backOut, expoOut } from 'svelte/easing'
|
||||||
|
import type { ClassValue } from 'svelte/elements'
|
||||||
import { slide } from 'svelte/transition'
|
import { slide } from 'svelte/transition'
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
open?: boolean
|
open?: boolean
|
||||||
class?: string
|
class?: ClassValue
|
||||||
summary?: import('svelte').Snippet<[any]>
|
summary?: import('svelte').Snippet<[any]>
|
||||||
extended?: import('svelte').Snippet
|
extended?: import('svelte').Snippet
|
||||||
children?: import('svelte').Snippet<[any]>
|
children?: import('svelte').Snippet<[any]>
|
||||||
|
|||||||
Reference in new issue
Block a user