From 19f68612a544210a3de734413c5e2729df745469 Mon Sep 17 00:00:00 2001 From: Gigi Date: Tue, 14 Oct 2025 11:08:03 +0200 Subject: [PATCH] style: use highlighter icon instead of server icon in highlight items - Replace faServer with faHighlighter in bottom left indicator - Update import statement - Keep plane icon for offline/local-only highlights - More semantically appropriate icon for highlight items --- src/components/HighlightItem.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/HighlightItem.tsx b/src/components/HighlightItem.tsx index 59f590e3..0528c16c 100644 --- a/src/components/HighlightItem.tsx +++ b/src/components/HighlightItem.tsx @@ -1,6 +1,6 @@ import React, { useEffect, useRef, useState } from 'react' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' -import { faQuoteLeft, faExternalLinkAlt, faPlane, faSpinner, faServer, faTrash, faEllipsisH, faMobileAlt } from '@fortawesome/free-solid-svg-icons' +import { faQuoteLeft, faExternalLinkAlt, faPlane, faSpinner, faHighlighter, faTrash, faEllipsisH, faMobileAlt } from '@fortawesome/free-solid-svg-icons' import { Highlight } from '../types/highlights' import { useEventModel } from 'applesauce-react/hooks' import { Models, IEventStore } from 'applesauce-core' @@ -209,13 +209,13 @@ export const HighlightItem: React.FC = ({ // Always show relay list, use plane icon for local-only const isLocalOrOffline = highlight.isLocalOnly || showOfflineIndicator - // Show server icon with relay info if available + // Show highlighter icon with relay info if available if (highlight.publishedRelays && highlight.publishedRelays.length > 0) { const relayNames = highlight.publishedRelays.map(url => url.replace(/^wss?:\/\//, '').replace(/\/$/, '') ) return { - icon: isLocalOrOffline ? faPlane : faServer, + icon: isLocalOrOffline ? faPlane : faHighlighter, tooltip: relayNames.join('\n'), spin: false } @@ -226,7 +226,7 @@ export const HighlightItem: React.FC = ({ url.replace(/^wss?:\/\//, '').replace(/\/$/, '') ) return { - icon: faServer, + icon: faHighlighter, tooltip: relayNames.join('\n'), spin: false } @@ -237,7 +237,7 @@ export const HighlightItem: React.FC = ({ url.replace(/^wss?:\/\//, '').replace(/\/$/, '') ) return { - icon: faServer, + icon: faHighlighter, tooltip: relayNames.join('\n'), spin: false }