mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-24 04:27:27 +08:00
fix: fav reference style issue (#2476)
This commit is contained in:
@@ -59,17 +59,19 @@ function FavoriteMenuItem({
|
|||||||
</MenuLinkItem>
|
</MenuLinkItem>
|
||||||
{collapsible && (
|
{collapsible && (
|
||||||
<Collapsible.Content className={styles.collapsibleContent}>
|
<Collapsible.Content className={styles.collapsibleContent}>
|
||||||
{referencesToShow.map(ref => {
|
<div className={styles.collapsibleContentInner}>
|
||||||
return (
|
{referencesToShow.map(ref => {
|
||||||
<FavoriteMenuItem
|
return (
|
||||||
key={ref}
|
<FavoriteMenuItem
|
||||||
workspace={workspace}
|
key={ref}
|
||||||
pageId={ref}
|
workspace={workspace}
|
||||||
metaMapping={metaMapping}
|
pageId={ref}
|
||||||
parentIds={new Set([...parentIds, pageId])}
|
metaMapping={metaMapping}
|
||||||
/>
|
parentIds={new Set([...parentIds, pageId])}
|
||||||
);
|
/>
|
||||||
})}
|
);
|
||||||
|
})}
|
||||||
|
</div>
|
||||||
</Collapsible.Content>
|
</Collapsible.Content>
|
||||||
)}
|
)}
|
||||||
</Collapsible.Root>
|
</Collapsible.Root>
|
||||||
|
|||||||
@@ -49,3 +49,9 @@ export const collapsibleContent = style({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
export const collapsibleContentInner = style({
|
||||||
|
display: 'flex',
|
||||||
|
flexDirection: 'column',
|
||||||
|
gap: '4px',
|
||||||
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user