misc: improve pagination
This commit is contained in:
1 parent
868f0c589a
commit
cc25808742
4 files changed
+13
-6
No files matched your search
@@ -123,7 +123,8 @@
|
||||
class="h-full flex items-center justify-center gap-1 ml-auto w-max mr-2"
|
||||
>
|
||||
{#if node.children.length > 0}
|
||||
<FormattedNumber number={node.children.length}></FormattedNumber>
|
||||
<FormattedNumber number={node.comment_view.counts.child_count}
|
||||
></FormattedNumber>
|
||||
{/if}
|
||||
<Icon
|
||||
src={open ? Minus : Plus}
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
title={$t('common.back')}
|
||||
size="square-md"
|
||||
rounding="pill"
|
||||
class="text-inherit dark:text-inherit"
|
||||
class="text-inherit dark:text-inherit disabled:!opacity-20 disabled:!bg-transparent"
|
||||
disabled={(!cursor?.back && cursor?.next) || page <= 1}
|
||||
>
|
||||
<Icon src={ChevronLeft} size="24" mini slot="suffix" />
|
||||
|
||||
Reference in new issue
Block a user