mirror of
https://github.com/kmc7468/arkvault.git
synced 2026-02-04 16:16:55 +00:00
Compare commits
1 Commits
demo
...
aa004dbd18
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
aa004dbd18 |
@@ -22,6 +22,7 @@
|
||||
count,
|
||||
estimateSize: itemHeight,
|
||||
gap: itemGap,
|
||||
overscan: 5,
|
||||
scrollMargin,
|
||||
}),
|
||||
);
|
||||
|
||||
@@ -49,11 +49,7 @@
|
||||
<RowVirtualizer
|
||||
count={rows.length}
|
||||
itemHeight={(index) =>
|
||||
rows[index]!.type === "header"
|
||||
? 28
|
||||
: Math.ceil(rows[index]!.files.length / 4) * 181 +
|
||||
(Math.ceil(rows[index]!.files.length / 4) - 1) * 4 +
|
||||
16}
|
||||
rows[index]!.type === "header" ? 28 : 185 + (rows[index]!.isLast ? 16 : 0)}
|
||||
class="flex flex-grow flex-col"
|
||||
>
|
||||
{#snippet item(index)}
|
||||
|
||||
Reference in New Issue
Block a user