aboutsummaryrefslogtreecommitdiffstats
path: root/apps/web/components/dashboard/preview/BookmarkHtmlHighlighter.tsx
diff options
context:
space:
mode:
authorMohamed Bassem <me@mbassem.com>2025-07-01 20:26:25 +0000
committerMohamed Bassem <me@mbassem.com>2025-07-19 11:45:30 +0000
commit49f38efdbe3718055d2c84847d7dab92ae359be9 (patch)
tree17d4b6d062ce885fd2de3a05ced224ab49292586 /apps/web/components/dashboard/preview/BookmarkHtmlHighlighter.tsx
parent4a4ff37b6283df1d6327a3f8ddff8b74f989ec36 (diff)
downloadkarakeep-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.tsx3
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}