fix: fav reference style issue (#2476)

This commit is contained in:
Peng Xiao
2023-05-22 12:01:03 +08:00
committed by GitHub
parent c08f6fdba4
commit 752bc9ca0e
2 changed files with 19 additions and 11 deletions

View File

@@ -59,17 +59,19 @@ function FavoriteMenuItem({
</MenuLinkItem>
{collapsible && (
<Collapsible.Content className={styles.collapsibleContent}>
{referencesToShow.map(ref => {
return (
<FavoriteMenuItem
key={ref}
workspace={workspace}
pageId={ref}
metaMapping={metaMapping}
parentIds={new Set([...parentIds, pageId])}
/>
);
})}
<div className={styles.collapsibleContentInner}>
{referencesToShow.map(ref => {
return (
<FavoriteMenuItem
key={ref}
workspace={workspace}
pageId={ref}
metaMapping={metaMapping}
parentIds={new Set([...parentIds, pageId])}
/>
);
})}
</div>
</Collapsible.Content>
)}
</Collapsible.Root>

View File

@@ -49,3 +49,9 @@ export const collapsibleContent = style({
},
},
});
export const collapsibleContentInner = style({
display: 'flex',
flexDirection: 'column',
gap: '4px',
});