Skip to content
This repository has been archived by the owner on Nov 15, 2024. It is now read-only.

Commit

Permalink
πŸ›πŸ’„ token list has margin collapse bug
Browse files Browse the repository at this point in the history
  • Loading branch information
edsolater committed Jun 27, 2023
1 parent 5bca375 commit 3512fd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/List.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default function List({
const allListItems = useMemo(
() =>
pickReactChildren(children, List.Item, (el, idx) =>
addPropsToReactElement<ComponentProps<typeof List['Item']>>(el, {
addPropsToReactElement<ComponentProps<(typeof List)['Item']>>(el, {
key: el.key ?? idx,
$isRenderByMain: true,
$observeFn: observe
Expand Down Expand Up @@ -122,7 +122,7 @@ List.Item = function ListItem({
return (
<VirtualBox show={isIntersecting} domRef={mergeRef(domRef, itemRef)} className="w-full shrink-0">
{(detectRef) => (
<div className={`ListItem w-full ${className}`} ref={detectRef} style={style}>
<div className={`ListItem w-full flow-root ${className}`} ref={detectRef} style={style}>
{shrinkToValue(children, [status])}
</div>
)}
Expand Down

1 comment on commit 3512fd9

@vercel
Copy link

@vercel vercel bot commented on 3512fd9 Jun 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.