diff --git a/packages/web/components/patterns/HighlightView.tsx b/packages/web/components/patterns/HighlightView.tsx index e6c5d631d..5ada52dd4 100644 --- a/packages/web/components/patterns/HighlightView.tsx +++ b/packages/web/components/patterns/HighlightView.tsx @@ -16,23 +16,17 @@ export function HighlightView(props: HighlightViewProps): JSX.Element { () => props.highlight.quote.split('\n'), [props.highlight.quote] ) - const annotation = props.highlight.annotation ?? ''; const StyledQuote = styled(Blockquote, { - margin: '0px 24px 16px 24px', + margin: '0px 0px 0px 0px', fontSize: '18px', lineHeight: '27px', - color: '$textDefault', + color: '$utilityTextDefault', cursor: 'pointer', }) return ( - {annotation && ( - - {annotation} - ) - } { if (props.scrollToHighlight) { props.scrollToHighlight(props.highlight.id) diff --git a/packages/web/components/templates/article/HighlightsModal.tsx b/packages/web/components/templates/article/HighlightsModal.tsx index 9f3ffde6c..f8f7569fd 100644 --- a/packages/web/components/templates/article/HighlightsModal.tsx +++ b/packages/web/components/templates/article/HighlightsModal.tsx @@ -2,6 +2,7 @@ import { ModalRoot, ModalOverlay, ModalContent, + ModalTitleBar, } from '../../elements/ModalPrimitives' import { Box, HStack, VStack, Separator, SpanBox } from '../../elements/LayoutPrimitives' import { Button } from '../../elements/Button' @@ -33,29 +34,11 @@ export function HighlightsModal(props: HighlightsModalProps): JSX.Element { event.preventDefault() props.onOpenChange(false) }} - css={{ overflow: 'auto', p: '0' }} + css={{ overflow: 'auto', px: '24px' }} > - - All your highlights and notes - - - + + {props.highlights.map((highlight) => ( {props.highlight.annotation && !isEditing ? ( - {props.highlight.annotation} + {props.highlight.annotation} ) : null} {isEditing ? : } - + {showDeleteConfirmation ? (