From cf3ca2d527d9877995af784562c57611d8b1257c Mon Sep 17 00:00:00 2001 From: Gigi Date: Sat, 18 Oct 2025 20:23:45 +0200 Subject: [PATCH] feat: show highlight button only when viewing articles - Only display the floating highlight button when currentArticle exists or selectedUrl is a nostr article - Prevents highlight button from showing on external URLs, videos, or other content types - Improves UX by showing highlight functionality only where it's relevant --- src/components/ThreePaneLayout.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ThreePaneLayout.tsx b/src/components/ThreePaneLayout.tsx index b3912f90..d5497574 100644 --- a/src/components/ThreePaneLayout.tsx +++ b/src/components/ThreePaneLayout.tsx @@ -414,7 +414,7 @@ const ThreePaneLayout: React.FC = (props) => { /> - {props.hasActiveAccount && ( + {props.hasActiveAccount && (props.currentArticle || (props.selectedUrl && props.selectedUrl.startsWith('nostr:'))) && (