From 6088dcc395775f3a817da410adaf9e823d8e62ce Mon Sep 17 00:00:00 2001 From: Gigi Date: Sun, 5 Oct 2025 21:57:57 +0100 Subject: [PATCH] style(highlights): show only external-link icon for source (no label) --- src/components/HighlightItem.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/HighlightItem.tsx b/src/components/HighlightItem.tsx index 206c1b82..242e91ac 100644 --- a/src/components/HighlightItem.tsx +++ b/src/components/HighlightItem.tsx @@ -1,6 +1,6 @@ import React, { useEffect, useRef } from 'react' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' -import { faQuoteLeft, faLink, faExternalLinkAlt } from '@fortawesome/free-solid-svg-icons' +import { faQuoteLeft, faExternalLinkAlt } from '@fortawesome/free-solid-svg-icons' import { Highlight } from '../types/highlights' import { formatDistanceToNow } from 'date-fns' @@ -88,10 +88,9 @@ export const HighlightItem: React.FC = ({ highlight, onSelec rel="noopener noreferrer" onClick={(e) => highlight.urlReference && onSelectUrl ? handleLinkClick(highlight.urlReference, e) : undefined} className="highlight-source" - title={highlight.eventReference ? 'View on Nostr' : 'View source'} + title={highlight.eventReference ? 'Open on Nostr' : 'Open source'} > - - {highlight.eventReference ? 'Nostr event' : 'Source'} + )}