Skip to content

Commit

Permalink
admin: Fix the lag when selecting big amount of songs
Browse files Browse the repository at this point in the history
  • Loading branch information
ThrRip committed Dec 21, 2023
1 parent a9ca267 commit 5993d66
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions packages/admin/components/PlaylistList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -212,12 +212,14 @@
pl-2.5 portrait:pl-2.5 portrait:pr-1 py-2.5 h-full rounded-lg cursor-pointer"
>
<input type="checkbox" class="hidden" @click="selectedIds.has(song.$id) ? selectedIds.delete(song.$id) : selectedIds.add(song.$id)">
<svg v-if="!selectedIds.has(song.$id)" class="!h-5 rounded-lg transition group-active:scale-90">
<use href="#far-square" />
</svg>
<svg v-if="selectedIds.has(song.$id)" class="!h-5 text-blue group-hover:text-blue-a rounded-lg transition group-active:scale-90">
<use href="#fas-square-check" />
</svg>
<ClientOnly>
<svg v-if="!selectedIds.has(song.$id)" class="!h-5 rounded-lg transition group-active:scale-90">
<use href="#far-square" />
</svg>
<svg v-if="selectedIds.has(song.$id)" class="!h-5 text-blue group-hover:text-blue-a rounded-lg transition group-active:scale-90">
<use href="#fas-square-check" />
</svg>
</ClientOnly>
</label>
<transition-group
tag="span"
Expand Down

0 comments on commit 5993d66

Please sign in to comment.