misc: update post page

This commit is contained in:
Xylight committed 2024-04-30 17:56:31 -07:00
1 parent 0ebb4df0f7
commit 8e6d705f2b
3 files changed
+52 -47

No files matched your search

+6 -1
View File
@@ -32,7 +32,12 @@
<StickyCard class="w-full {$$props.class} text-slate-600 dark:text-zinc-400">
<div class="flex flex-row gap-3 items-center">
{#if site.site.icon}
<Avatar width={32} url={site.site.icon} alt={site.site.name} />
<Avatar
width={32}
url={site.site.icon}
alt={site.site.name}
circle={false}
/>
{/if}
<div class="flex flex-col">
<h1 class="font-bold text-base">{site.site.name}</h1>
+2 -2
View File
@@ -12,7 +12,7 @@
import { page } from '$app/stores'
import { Button } from 'mono-svelte'
import { Icon, XMark } from 'svelte-hero-icons'
import { expoOut } from 'svelte/easing'
import { backOut, expoOut } from 'svelte/easing'
import { fade, scale } from 'svelte/transition'
/**
@@ -40,7 +40,7 @@
height={400}
src={$page.state.openImage}
class="w-full h-auto object-contain max-w-screen-sm mx-auto my-auto overscroll-contain bg-white dark:bg-zinc-900"
transition:scale={{ start: 0.9, easing: expoOut }}
transition:scale={{ start: 0.9, easing: backOut }}
{alt}
/>
</div>