From e3a6cc2e5f1593110e200e05b3f7ac45549f8cca Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Fri, 17 Mar 2023 14:59:37 +0800 Subject: [PATCH] Positioning fixes for the highlights mode in the library --- .../templates/homeFeed/HighlightsLayout.tsx | 106 +++++++++++------- 1 file changed, 65 insertions(+), 41 deletions(-) diff --git a/packages/web/components/templates/homeFeed/HighlightsLayout.tsx b/packages/web/components/templates/homeFeed/HighlightsLayout.tsx index 425be9134..ec74ead75 100644 --- a/packages/web/components/templates/homeFeed/HighlightsLayout.tsx +++ b/packages/web/components/templates/homeFeed/HighlightsLayout.tsx @@ -110,57 +110,70 @@ export function HighlightItemsLayout( - - {items.length > 0 ? ( - <> - - - - ) : ( - - No highlights found - - )} - + + + + + + {currentItem && ( <> - + + + )} @@ -203,6 +227,7 @@ function LibraryItemsList(props: LibraryItemsListProps): JSX.Element { width: '100%', height: '100%', px: '15px', + cursor: 'pointer', }} onClick={(event) => { props.setCurrentItem(linkedItem) @@ -351,7 +376,6 @@ function HighlightList(props: HighlightListProps): JSX.Element { - + {(props.item.node.highlights ?? []).map((highlight) => ( ))} +