Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
display count
Browse files
src/lib/components/community/drawer/Comments.svelte
CHANGED
@@ -50,7 +50,7 @@
|
|
50 |
theme="dark"
|
51 |
onClick={() => collapse_comments = !collapse_comments}
|
52 |
>
|
53 |
-
{collapse_comments ? "Show less" :
|
54 |
</Button>
|
55 |
</div>
|
56 |
{/if}
|
|
|
50 |
theme="dark"
|
51 |
onClick={() => collapse_comments = !collapse_comments}
|
52 |
>
|
53 |
+
{collapse_comments ? "Show less" : `Show more (${comments?.length - 1})`}
|
54 |
</Button>
|
55 |
</div>
|
56 |
{/if}
|
src/lib/components/models/drawer/comments/Comments.svelte
CHANGED
@@ -50,7 +50,7 @@
|
|
50 |
theme="dark"
|
51 |
onClick={() => collapse_comments = !collapse_comments}
|
52 |
>
|
53 |
-
{collapse_comments ? "Show less" :
|
54 |
</Button>
|
55 |
</div>
|
56 |
{/if}
|
|
|
50 |
theme="dark"
|
51 |
onClick={() => collapse_comments = !collapse_comments}
|
52 |
>
|
53 |
+
{collapse_comments ? "Show less" : `Show more (${comments?.length - 1})`}
|
54 |
</Button>
|
55 |
</div>
|
56 |
{/if}
|