fix: virtualizer initialOffset causes missing items on shift (#582)

This commit is contained in:
Xylight authored and GitHub committed 2025-06-16 12:10:32 -07:00
1 parent e3aab10cd0
commit 0de8758996
4 files changed
+56 -44

No files matched your search

+3 -2
View File
@@ -1,5 +1,6 @@
<script lang="ts">
import { t } from '$lib/i18n/translations'
import type { ClassValue } from 'svelte/elements'
import Markdown from '../markdown/Markdown.svelte'
import FormattedNumber from '../util/FormattedNumber.svelte'
import Avatar from './Avatar.svelte'
@@ -17,7 +18,7 @@
format?: boolean
}[]
center?: boolean
class?: string
class?: ClassValue
nameDetail?: import('svelte').Snippet
actions?: import('svelte').Snippet
children?: import('svelte').Snippet
@@ -39,7 +40,7 @@
}: Props = $props()
</script>
<div {...rest} class="z-10 relative text-sm contents {clazz}">
<div {...rest} class={['z-10 relative text-sm contents', clazz]}>
{#if banner}
<img
src={banner}