feat: add theme actions

This commit is contained in:
Xylight committed 2024-08-03 11:16:38 -07:00
1 parent bcd168df45
commit e31071aef3
5 files changed
+29 -7

No files matched your search

+1 -1
View File
@@ -156,7 +156,7 @@
<PostBody body={post.post.body} {view} style="grid-area: body" />
{/if}
{#if actions}
<PostActions on:hide bind:post {type} style="grid-area: actions;" {view} />
<PostActions on:hide bind:post style="grid-area: actions;" {view} />
{:else if view == 'compact'}
<div class="flex flex-row items-center gap-2 text-sm">
<Badge>
@@ -48,13 +48,12 @@
import { fediseer, type Data } from '$lib/fediseer/fediseer'
import { t } from '$lib/translations'
import { text } from '$lib/components/translate/translation'
import { hidePost, type MediaType } from './helpers'
import { hidePost } from './helpers'
import { feature } from '$lib/version'
import Switch from '$lib/components/input/Switch.svelte'
import { instanceToURL } from '$lib/util'
export let post: PostView
export let type: MediaType | undefined = undefined
export let view: View = 'cozy'
export let debug: boolean = false