Skip to content

Commit

Permalink
Fix artwork refreshing
Browse files Browse the repository at this point in the history
  • Loading branch information
probablykasper committed Sep 25, 2024
1 parent 7b6c00d commit fb7d839
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/TrackList.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,7 @@
<VirtualListBlock
bind:this={virtual_list}
items={tracks_page.itemIds}
get_key={(item) => item}
item_height={24}
{scroll_container}
let:item={item_id}
Expand Down
2 changes: 1 addition & 1 deletion src/components/VirtualListBlock.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
export let item_height: number
/** Must be a positioned element, like `position: relative` */
export let scroll_container: HTMLElement
export let get_key: (item: X, i: number) => number | string = (_, i) => i
export let get_key: (item: X, i: number) => number | string
export let buffer = 3
$: height = items.length * item_height
Expand Down

0 comments on commit fb7d839

Please sign in to comment.