fix: z index weirdness

This commit is contained in:
Xylight committed 2024-02-24 13:17:50 -08:00
1 parent 8003049109
commit fd955e8401
2 files changed
+35 -28

No files matched your search

@@ -30,7 +30,12 @@
} from '$lib/components/lemmy/moderation/moderation.js'
import ModerationMenu from '$lib/components/lemmy/moderation/ModerationMenu.svelte'
import { profile } from '$lib/auth.js'
import { contentView, deleteItem, markAsRead, save } from '$lib/lemmy/contentview.js'
import {
contentView,
deleteItem,
markAsRead,
save,
} from '$lib/lemmy/contentview.js'
import { setSessionStorage } from '$lib/session.js'
import { goto } from '$app/navigation'
import { userSettings } from '$lib/settings.js'
@@ -59,7 +64,7 @@
</script>
{#if fediseerData}
<Fediseer bind:open={fediseerOpen} data={fediseerData} />
<Fediseer bind:open={fediseerOpen} data={fediseerData} />
{/if}
{#if editing}
@@ -88,7 +93,7 @@
</Modal>
{/if}
<div class="flex flex-row gap-2 items-center h-8 z-10">
<div class="flex flex-row gap-2 items-center h-8">
<PostVote
post={post.post}
bind:vote={post.my_vote}
@@ -129,21 +134,26 @@
{/if}
{#if $profile?.jwt}
<Button
on:click={async () => {
if (!$profile?.jwt) return
saving = true
post.saved = await save(post, !post.saved, $profile?.jwt)
saving = false
}}
size="square-md"
color="ghost"
loading={saving}
disabled={saving}
title={post.saved ? 'Unsave' : 'Save'}
>
<Icon src={post.saved ? BookmarkSlash : Bookmark} size="16" mini slot="prefix" />
</Button>
<Button
on:click={async () => {
if (!$profile?.jwt) return
saving = true
post.saved = await save(post, !post.saved, $profile?.jwt)
saving = false
}}
size="square-md"
color="ghost"
loading={saving}
disabled={saving}
title={post.saved ? 'Unsave' : 'Save'}
>
<Icon
src={post.saved ? BookmarkSlash : Bookmark}
size="16"
mini
slot="prefix"
/>
</Button>
{/if}
<Menu
@@ -153,12 +163,7 @@
targetClass="h-full"
title="Post actions"
>
<Button
slot="target"
title="Post actions"
color="ghost"
size="square-md"
>
<Button slot="target" title="Post actions" color="ghost" size="square-md">
<Icon slot="prefix" src={EllipsisHorizontal} width={16} mini />
</Button>
<MenuDivider>Creator</MenuDivider>
@@ -183,7 +188,9 @@
e.stopImmediatePropagation()
fediseerLoading = true
const data = await fediseer.getInstanceInfo(new URL(post.community.actor_id).hostname)
const data = await fediseer.getInstanceInfo(
new URL(post.community.actor_id).hostname
)
console.log(data)
fediseerData = data
fediseerOpen = true
@@ -193,9 +200,9 @@
}}
>
{#if fediseerLoading}
<Spinner width={14} />
<Spinner width={14} />
{:else}
<Icon src={ServerStack} width={16} mini />
<Icon src={ServerStack} width={16} mini />
{/if}
<span>{new URL(post.community.actor_id).hostname}</span>
</MenuButton>