diff --git a/packages/web/components/patterns/HighlightView.tsx b/packages/web/components/patterns/HighlightView.tsx index cca4aec7b..f982d15f3 100644 --- a/packages/web/components/patterns/HighlightView.tsx +++ b/packages/web/components/patterns/HighlightView.tsx @@ -1,5 +1,11 @@ /* eslint-disable react/no-children-prop */ -import { BookOpen, CaretDown, PencilLine } from 'phosphor-react' +import { + BookOpen, + CaretDown, + HighlighterCircle, + Notebook, + PencilLine, +} from 'phosphor-react' import { useState } from 'react' import type { Highlight } from '../../lib/networking/fragments/highlightFragment' import { LabelChip } from '../elements/LabelChip' @@ -10,7 +16,7 @@ import { SpanBox, HStack, } from '../elements/LayoutPrimitives' -import { styled } from '../tokens/stitches.config' +import { styled, theme } from '../tokens/stitches.config' import { HighlightViewNote } from './HighlightNotes' import ReactMarkdown from 'react-markdown' import remarkGfm from 'remark-gfm' @@ -62,27 +68,35 @@ export function HighlightView(props: HighlightViewProps): JSX.Element { }, }} > - - - + {props.highlight.annotation ? ( + + ) : ( + + )} + + + + + {/* { @@ -123,16 +122,19 @@ export function LibraryHighlightGridCard( <> {sortedHighlights.map((highlight) => ( - + {}} + setLabelsTarget={() => {}} + setShowConfirmDeleteHighlightId={() => {}} updateHighlight={(highlight) => { console.log('updated highlight: ', highlight) }} diff --git a/packages/web/components/templates/article/Notebook.tsx b/packages/web/components/templates/article/Notebook.tsx index 75f703d82..118b1d050 100644 --- a/packages/web/components/templates/article/Notebook.tsx +++ b/packages/web/components/templates/article/Notebook.tsx @@ -221,7 +221,6 @@ export function NotebookContent(props: NotebookContentProps): JSX.Element { height: '100%', width: '100%', p: '20px', - bg: '$readerMargin', '@mdDown': { p: '15px' }, }} >