mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-11 08:10:10 +00:00
fix(dashboard): dont use same indexes per page
changing the accordion to individual collapses meant we could implement keyboard navigation between the cards however, I only handled card collapsing state per-page, which caused an issue where opening one card on one page would open the card with the same index on every page this fixes that by indexing the cards based on its position in the whole list rather than per-page
This commit is contained in:
parent
ce431364a0
commit
7ee5bba14c
5 changed files with 25 additions and 20 deletions
|
|
@ -132,6 +132,6 @@
|
|||
<NewGroup on:create={addItemToList} />
|
||||
{/if}
|
||||
{/if}
|
||||
<CardsList on:deletion bind:list={slicedList} bind:groups bind:members isMainDash={isMainDash} isPublic={isPublic} itemType={itemType} />
|
||||
<CardsList on:deletion bind:list={slicedList} bind:groups bind:members isMainDash={isMainDash} isPublic={isPublic} itemType={itemType} itemsPerPage={itemsPerPage} currentPage={currentPage} />
|
||||
<ListPagination bind:currentPage {pageAmount} />
|
||||
{/if}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue