misc: tweak color

This commit is contained in:
Xyphyn committed 2023-09-02 22:00:34 -07:00
1 parent 6c179434d5
commit c4a1f143cb
2 files changed
+10 -8

No files matched your search

+7 -7
View File
@@ -20,13 +20,13 @@
</script> </script>
<Card <Card
class="flex flex-col w-full gap-2.5 {compact class="flex flex-col max-w-full min-w-0 w-full gap-2.5 {compact
? '!bg-transparent !border-0 py-5' ? '!bg-transparent !border-0 py-5'
: 'p-5'}" : 'p-5'}"
id={post.post.id} id={post.post.id}
> >
<div class="flex flex-row gap-2 w-full"> <div class="flex flex-row gap-2 max-w-full w-full">
<div class="flex flex-col gap-2 w-full"> <div class="flex flex-col w-full gap-2">
<div class="flex flex-col w-full gap-2"> <div class="flex flex-col w-full gap-2">
<PostMeta <PostMeta
community={hideCommunity ? undefined : post.community} community={hideCommunity ? undefined : post.community}
@@ -92,10 +92,10 @@
/> />
</picture> </picture>
</a> </a>
{:else if post.post.thumbnail_url && post.post.url} {:else if post.post.url}
<PostLink <PostLink
url={post.post.url} url={post.post.url}
thumbnail_url="{post.post.thumbnail_url}?format=webp&thumbnail=512" thumbnail_url={post.post.thumbnail_url ? `${post.post.thumbnail_url}?format=webp&thumbnail=512` : undefined}
nsfw={post.post.nsfw} nsfw={post.post.nsfw}
/> />
{/if} {/if}
@@ -103,8 +103,8 @@
{#if post.post.body && !post.post.nsfw} {#if post.post.body && !post.post.nsfw}
<div <div
class="text-sm relative overflow-hidden {compact class="text-sm relative overflow-hidden {compact
? `text-zinc-500 max-h-24` ? `text-zinc-600 dark:text-zinc-400 max-h-24`
: 'text-slate-600 max-h-48'}" : 'text-slate-600 dark:text-zinc-400 max-h-48'}"
> >
<Markdown inline source={post.post.body.slice(0, 400)} /> <Markdown inline source={post.post.body.slice(0, 400)} />
{#if post.post.body.length > (compact ? 200 : 600)} {#if post.post.body.length > (compact ? 200 : 600)}
@@ -3,12 +3,13 @@
import { Icon, Link as LinkIcon } from 'svelte-hero-icons' import { Icon, Link as LinkIcon } from 'svelte-hero-icons'
export let url: string export let url: string
export let thumbnail_url: string export let thumbnail_url: string | undefined = undefined
export let nsfw: boolean = false export let nsfw: boolean = false
</script> </script>
<Link href={url} highlight nowrap /> <Link href={url} highlight nowrap />
{#if thumbnail_url}
<a href={url}> <a href={url}>
<img <img
src={thumbnail_url} src={thumbnail_url}
@@ -19,3 +20,4 @@
class:blur-3xl={nsfw} class:blur-3xl={nsfw}
/> />
</a> </a>
{/if}