diff options
| author | Mohamed Bassem <me@mbassem.com> | 2025-07-01 20:26:25 +0000 |
|---|---|---|
| committer | Mohamed Bassem <me@mbassem.com> | 2025-07-19 11:45:30 +0000 |
| commit | 49f38efdbe3718055d2c84847d7dab92ae359be9 (patch) | |
| tree | 17d4b6d062ce885fd2de3a05ced224ab49292586 /apps/web/components/dashboard/preview/BookmarkHtmlHighlighter.tsx | |
| parent | 4a4ff37b6283df1d6327a3f8ddff8b74f989ec36 (diff) | |
| download | karakeep-49f38efdbe3718055d2c84847d7dab92ae359be9.tar.zst | |
feat: Add a proper reader mode
Diffstat (limited to 'apps/web/components/dashboard/preview/BookmarkHtmlHighlighter.tsx')
| -rw-r--r-- | apps/web/components/dashboard/preview/BookmarkHtmlHighlighter.tsx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/web/components/dashboard/preview/BookmarkHtmlHighlighter.tsx b/apps/web/components/dashboard/preview/BookmarkHtmlHighlighter.tsx index dc446112..19499d3e 100644 --- a/apps/web/components/dashboard/preview/BookmarkHtmlHighlighter.tsx +++ b/apps/web/components/dashboard/preview/BookmarkHtmlHighlighter.tsx @@ -92,6 +92,7 @@ export interface Highlight { interface HTMLHighlighterProps { htmlContent: string; + style?: React.CSSProperties; className?: string; highlights?: Highlight[]; onHighlight?: (highlight: Highlight) => void; @@ -102,6 +103,7 @@ interface HTMLHighlighterProps { function BookmarkHTMLHighlighter({ htmlContent, className, + style, highlights = [], onHighlight, onUpdateHighlight, @@ -345,6 +347,7 @@ function BookmarkHTMLHighlighter({ dangerouslySetInnerHTML={{ __html: htmlContent }} onPointerUp={handlePointerUp} className={className} + style={style} /> <ColorPickerMenu position={menuPosition} |
