From bdfb7ca9a6506dbc4724c8ac2bac30e5ae585210 Mon Sep 17 00:00:00 2001 From: Gigi Date: Fri, 3 Oct 2025 09:51:34 +0200 Subject: [PATCH] feat: make entire compact list row clickable to open reader - Add onClick handler to compact-row div - Show pointer cursor on rows with URLs - Add stopPropagation to action button to prevent double-trigger - Include accessibility attributes (role, tabIndex) --- dist/index.html | 4 ++-- src/components/BookmarkItem.tsx | 15 +++++++++++++-- src/index.css | 8 ++++++++ 3 files changed, 23 insertions(+), 4 deletions(-) diff --git a/dist/index.html b/dist/index.html index ec6bddf8..336e84ec 100644 --- a/dist/index.html +++ b/dist/index.html @@ -5,8 +5,8 @@ Markr - Nostr Bookmarks - - + +
diff --git a/src/components/BookmarkItem.tsx b/src/components/BookmarkItem.tsx index 1297e4b0..5cb3571f 100644 --- a/src/components/BookmarkItem.tsx +++ b/src/components/BookmarkItem.tsx @@ -79,9 +79,20 @@ export const BookmarkItem: React.FC = ({ bookmark, index, onS // Compact view rendering if (viewMode === 'compact') { + const handleCompactClick = () => { + if (hasUrls && onSelectUrl) { + onSelectUrl(extractedUrls[0]) + } + } + return (
-
+
{bookmark.isPrivate ? ( <> @@ -101,7 +112,7 @@ export const BookmarkItem: React.FC = ({ bookmark, index, onS {hasUrls && (