From 523a251b6f330f72adb13119a2577a4220d5a078 Mon Sep 17 00:00:00 2001 From: "Mark :)" Date: Sun, 18 May 2025 10:36:21 +0200 Subject: feat: position highlight menu based on device type (#1348) * feat: position highlight menu based on device type * fix: re-run prettier --- .../dashboard/preview/BookmarkHtmlHighlighter.tsx | 23 ++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) (limited to 'apps/web') diff --git a/apps/web/components/dashboard/preview/BookmarkHtmlHighlighter.tsx b/apps/web/components/dashboard/preview/BookmarkHtmlHighlighter.tsx index a3b34f9a..dc446112 100644 --- a/apps/web/components/dashboard/preview/BookmarkHtmlHighlighter.tsx +++ b/apps/web/components/dashboard/preview/BookmarkHtmlHighlighter.tsx @@ -19,6 +19,7 @@ interface ColorPickerMenuProps { onDelete?: () => void; selectedHighlight: Highlight | null; onClose: () => void; + isMobile: boolean; } const ColorPickerMenu: React.FC = ({ @@ -27,6 +28,7 @@ const ColorPickerMenu: React.FC = ({ onDelete, selectedHighlight, onClose, + isMobile, }) => { return ( = ({ top: position?.y, }} /> - + {SUPPORTED_HIGHLIGHT_COLORS.map((color) => (