fix: post vote style

This commit is contained in:
Xyphyn committed 2023-08-31 18:45:25 -07:00
1 parent 66f9942964
commit 72cfd7a894
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -107,7 +107,7 @@
: 'text-slate-600 max-h-48'}"
>
<Markdown inline source={post.post.body.slice(0, 400)} />
{#if post.post.body.length > (compact ? 300 : 600)}
{#if post.post.body.length > (compact ? 200 : 600)}
<div
class="absolute bottom-0 w-full h-16 bg-gradient-to-b {compact
? 'dark:from-zinc-950/0 dark:to-zinc-950 from-slate-50/0 to-slate-50'
@@ -68,7 +68,7 @@
{:else}
<div
class="flex items-center text-sm gap-1 rounded-md border border-slate-200
dark:border-zinc-700 px-1 h-full duration-200"
dark:border-zinc-700 px-1 h-full duration-200 dark:bg-zinc-900"
>
<Button
aria-label="Upvote"