Skip to content

Commit b7ab411

Browse files
committed
hide comment-header if no comment
1 parent e81fc99 commit b7ab411

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

frontend/src/App.svelte

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,11 @@
3131

3232
<Form bind:comments bind:count />
3333

34+
35+
{#if count}
3436
<div class="comment-header">
3537
<p>
36-
<strong>{#if count}<span>{count}</span>{/if}评论</strong>
38+
<strong><span>{count}</span>评论</strong>
3739
</p>
3840
<p class="comment-pagination">
3941
{#if currentPage !== 1}
@@ -44,6 +46,7 @@
4446
{/if}
4547
</p>
4648
</div>
49+
{/if}
4750

4851
{#await promise}
4952
<p>🍵 评论加载中……</p>

0 commit comments

Comments
 (0)