mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
feat(dashboard): show item count on dash lists
This commit is contained in:
parent
e60eeba6ed
commit
0227efbbca
1 changed files with 10 additions and 0 deletions
|
|
@ -133,6 +133,7 @@
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
{:else}
|
{:else}
|
||||||
|
<span class="itemcounter">{list.length} {itemType}s ({slicedList.length} shown)</span>
|
||||||
<ListSearch bind:searchBy bind:searchValue on:refresh={fetchList} />
|
<ListSearch bind:searchBy bind:searchValue on:refresh={fetchList} />
|
||||||
|
|
||||||
<ListPagination bind:currentPage {pageAmount} />
|
<ListPagination bind:currentPage {pageAmount} />
|
||||||
|
|
@ -147,3 +148,12 @@
|
||||||
<CardsList on:update={update} on:deletion={updateDelete} list={slicedList} groups={groups} members={members} isPublic={isPublic} itemType={itemType} itemsPerPage={itemsPerPage} currentPage={currentPage} fullLength={list.length} {sortBy} {searchBy} />
|
<CardsList on:update={update} on:deletion={updateDelete} list={slicedList} groups={groups} members={members} isPublic={isPublic} itemType={itemType} itemsPerPage={itemsPerPage} currentPage={currentPage} fullLength={list.length} {sortBy} {searchBy} />
|
||||||
<ListPagination bind:currentPage {pageAmount} />
|
<ListPagination bind:currentPage {pageAmount} />
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.itemcounter {
|
||||||
|
width: 100%;
|
||||||
|
text-align: center;
|
||||||
|
display: inline-block;
|
||||||
|
margin-bottom: 0.5rem;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue