mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-24 09:38:29 +02:00
Fix row height debug thing
This commit is contained in:
@@ -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)`,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user