enzostvs HF staff commited on
Commit
0e53d5c
β€’
1 Parent(s): 09efb88

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" : "Show more"}
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" : "Show more"}
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}