Skip to content

Commit a7dff50

Browse files
rjmunronytamin
authored andcommitted
1 parent d308900 commit a7dff50

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

packages/webui/src/client/lib/VirtualElement.tsx

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -340,19 +340,16 @@ export function VirtualElement({
340340
measurements
341341
? {
342342
height: measurements.clientHeight + 'px',
343-
}
343+
}
344344
: !isShowingChildren
345-
? {
346-
height: ((placeholderHeight || ref?.clientHeight) ?? 0) + 'px',
347-
}
348-
: undefined
345+
? {
346+
height: ((placeholderHeight || ref?.clientHeight) ?? 0) + 'px',
347+
}
348+
: undefined
349349
}
350350
>
351351
{!isShowingChildren ? (
352-
<div
353-
className={`virtual-element-placeholder ${placeholderClassName}`}
354-
style={styleObj}
355-
></div>
352+
<div className={`virtual-element-placeholder ${placeholderClassName}`} style={styleObj}></div>
356353
) : (
357354
children
358355
)}

0 commit comments

Comments
 (0)