fix: change <p> to <div>, as it wasn't necessary for semantics

This commit is contained in:
Xyphyn committed 2023-07-29 15:24:36 -07:00
1 parent 908b45c4aa
commit 8488bb1e17
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -108,7 +108,7 @@
/> />
{/if} {/if}
{#if post.post.body && !post.post.nsfw} {#if post.post.body && !post.post.nsfw}
<p <div
class="text-sm line-clamp-3 bg-slate-100 dark:bg-zinc-800 class="text-sm line-clamp-3 bg-slate-100 dark:bg-zinc-800
border border-slate-200 dark:border-zinc-700 rounded-md p-2" border border-slate-200 dark:border-zinc-700 rounded-md p-2"
> >
@@ -118,7 +118,7 @@
? `${post.post.body.slice(0, 350)}...` ? `${post.post.body.slice(0, 350)}...`
: post.post.body} : post.post.body}
/> />
</p> </div>
{/if} {/if}
{/if} {/if}
{#if actions} {#if actions}
+2 -2
View File
@@ -137,12 +137,12 @@
</video> </video>
{/if} {/if}
{#if post.body} {#if post.body}
<p <div
class="bg-slate-100 border border-slate-200 dark:border-zinc-800 class="bg-slate-100 border border-slate-200 dark:border-zinc-800
dark:bg-zinc-900 p-2 md:p-4 text-sm rounded-md leading-[22px]" dark:bg-zinc-900 p-2 md:p-4 text-sm rounded-md leading-[22px]"
> >
<Markdown source={post.body} /> <Markdown source={post.body} />
</p> </div>
{/if} {/if}
<div class="w-full relative"> <div class="w-full relative">
<PostActions <PostActions