misc: tweak comments look
This commit is contained in:
1 parent
9711ffe4d9
commit
32f65add46
5 files changed
+12
-9
No files matched your search
@@ -77,7 +77,7 @@
|
|||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<li
|
<li
|
||||||
class="py-2 pb-3 {node.depth == 0
|
class="py-2 {node.depth == 0
|
||||||
? 'border-b border-slate-200 dark:border-zinc-800'
|
? 'border-b border-slate-200 dark:border-zinc-800'
|
||||||
: ''}"
|
: ''}"
|
||||||
id="#{node.comment_view.comment.id.toString()}"
|
id="#{node.comment_view.comment.id.toString()}"
|
||||||
@@ -101,7 +101,9 @@
|
|||||||
{node.comment_view.counts.score}
|
{node.comment_view.counts.score}
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
<RelativeDate date={new Date(node.comment_view.comment.published + 'Z')} />
|
<RelativeDate
|
||||||
|
date={new Date(node.comment_view.comment.published + 'Z')}
|
||||||
|
/>
|
||||||
<span>•</span>
|
<span>•</span>
|
||||||
<span>
|
<span>
|
||||||
{Math.floor(
|
{Math.floor(
|
||||||
@@ -147,7 +149,7 @@
|
|||||||
<Markdown source={node.comment_view.comment.content} />
|
<Markdown source={node.comment_view.comment.content} />
|
||||||
</div>
|
</div>
|
||||||
{#if actions}
|
{#if actions}
|
||||||
<div class="flex flex-row gap-2 items-center h-[26px]">
|
<div class="flex flex-row gap-2 items-center">
|
||||||
<CommentActions
|
<CommentActions
|
||||||
comment={node.comment_view}
|
comment={node.comment_view}
|
||||||
bind:replying
|
bind:replying
|
||||||
|
|||||||
@@ -28,7 +28,10 @@
|
|||||||
Jump
|
Jump
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
<a href="/post/{getInstance()}/{comment.post.id}" class="font-bold text-base">
|
<a
|
||||||
|
href="/post/{getInstance()}/{comment.post.id}"
|
||||||
|
class="font-medium text-base"
|
||||||
|
>
|
||||||
{comment.post.name}
|
{comment.post.name}
|
||||||
</a>
|
</a>
|
||||||
<div class="list-none">
|
<div class="list-none">
|
||||||
|
|||||||
@@ -59,9 +59,7 @@
|
|||||||
|
|
||||||
<div
|
<div
|
||||||
class="flex flex-row items-center rounded-md transition-colors
|
class="flex flex-row items-center rounded-md transition-colors
|
||||||
cursor-pointer h-full {$userSettings.newComments
|
cursor-pointer h-full {Color.borderDark}"
|
||||||
? Color.borderDark
|
|
||||||
: 'hover:bg-slate-200 hover:dark:bg-zinc-800'}"
|
|
||||||
>
|
>
|
||||||
<button
|
<button
|
||||||
on:click={upvote}
|
on:click={upvote}
|
||||||
|
|||||||
@@ -34,7 +34,7 @@
|
|||||||
/>
|
/>
|
||||||
<a
|
<a
|
||||||
href="/post/{getInstance()}/{post.post.id}"
|
href="/post/{getInstance()}/{post.post.id}"
|
||||||
class="font-bold"
|
class="font-medium"
|
||||||
class:text-slate-500={post.read && $userSettings.markReadPosts}
|
class:text-slate-500={post.read && $userSettings.markReadPosts}
|
||||||
class:dark:text-zinc-400={post.read && $userSettings.markReadPosts}
|
class:dark:text-zinc-400={post.read && $userSettings.markReadPosts}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -187,7 +187,7 @@
|
|||||||
locked={postData.post.locked}
|
locked={postData.post.locked}
|
||||||
/>
|
/>
|
||||||
{/if}
|
{/if}
|
||||||
{#await buildCommentsTreeAsync(comments.comments, false)}
|
{#await buildCommentsTreeAsync(comments.comments)}
|
||||||
<div class="h-16 mx-auto grid place-items-center">
|
<div class="h-16 mx-auto grid place-items-center">
|
||||||
<Spinner width={36} />
|
<Spinner width={36} />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in new issue
Block a user