diff options
Diffstat (limited to 'apps/web/components/dashboard/highlights')
| -rw-r--r-- | apps/web/components/dashboard/highlights/HighlightCard.tsx | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/apps/web/components/dashboard/highlights/HighlightCard.tsx b/apps/web/components/dashboard/highlights/HighlightCard.tsx index 1bba0b47..51421e0f 100644 --- a/apps/web/components/dashboard/highlights/HighlightCard.tsx +++ b/apps/web/components/dashboard/highlights/HighlightCard.tsx @@ -44,16 +44,24 @@ export default function HighlightCard({ }); }; - const Wrapper = ({ children }: { children: React.ReactNode }) => + const Wrapper = ({ + className, + children, + }: { + className?: string; + children: React.ReactNode; + }) => clickable ? ( - <button onClick={onBookmarkClick}>{children}</button> + <button className={className} onClick={onBookmarkClick}> + {children} + </button> ) : ( - <div>{children}</div> + <div className={className}>{children}</div> ); return ( <div className={cn("flex items-center justify-between", className)}> - <Wrapper> + <Wrapper className="flex flex-col gap-2 text-left"> <blockquote cite={highlight.bookmarkId} className={cn( @@ -63,6 +71,11 @@ export default function HighlightCard({ > <p>{highlight.text}</p> </blockquote> + {highlight.note && ( + <span className="text-sm text-muted-foreground"> + {highlight.note} + </span> + )} </Wrapper> {!readOnly && ( <div className="flex gap-2"> |
