Fix row height debug thing

This commit is contained in:
Gregory Schier
2025-02-03 12:00:51 -08:00
parent fcf2577430
commit 615ad81ab5

View File

@@ -55,12 +55,12 @@ export function AutoScroller<T>({ data, render, header }: Props<T>) {
size="sm" size="sm"
iconSize="md" iconSize="md"
variant="border" variant="border"
className={'!bg-surface z-10'} className="!bg-surface z-10"
onClick={() => setAutoScroll((v) => !v)} onClick={() => setAutoScroll((v) => !v)}
/> />
</div> </div>
)} )}
{header ?? <span aria-hidden/>} {header ?? <span aria-hidden />}
<div ref={containerRef} className="h-full w-full overflow-y-auto" onScroll={handleScroll}> <div ref={containerRef} className="h-full w-full overflow-y-auto" onScroll={handleScroll}>
<div <div
style={{ style={{
@@ -77,7 +77,7 @@ export function AutoScroller<T>({ data, render, header }: Props<T>) {
top: 0, top: 0,
left: 0, left: 0,
width: '100%', width: '100%',
height: `${virtualItem.size * 1000}px`, height: `${virtualItem.size}px`,
transform: `translateY(${virtualItem.start}px)`, transform: `translateY(${virtualItem.start}px)`,
}} }}
> >