feat: add row select count to library table

This commit is contained in:
ThaUnknown 2025-09-12 09:55:26 +02:00
parent bf2e645daa
commit 7b92b594c5
No known key found for this signature in database
2 changed files with 5 additions and 2 deletions

View file

@ -1,6 +1,6 @@
{
"name": "ui",
"version": "6.4.132",
"version": "6.4.133",
"license": "BUSL-1.1",
"private": true,
"packageManager": "pnpm@9.15.5",

View file

@ -101,7 +101,7 @@
const tableModel = table.createViewModel(columns)
const { headerRows, pageRows, tableAttrs, tableBodyAttrs, pluginStates } = tableModel
const { headerRows, pageRows, rows, tableAttrs, tableBodyAttrs, pluginStates } = tableModel
async function playEntry ({ mediaID, episode, hash }: LibraryEntry) {
if (!mediaID || !hash) return
@ -164,6 +164,9 @@
<Trash class={cn('size-4')} />
</Button>
</div>
<div class='text-muted-foreground flex-1 text-sm text-right mb-1'>
{Object.keys($selectedDataIds).length} of {$rows.length} row(s) selected.
</div>
<div class='rounded-md border size-full overflow-clip contain-strict'>
<Table.Root {...$tableAttrs} class='max-h-full'>
<Table.Header class='px-5'>