From 9b3783b640152dd3fe686bb0c9cb4f2288c43b23 Mon Sep 17 00:00:00 2001 From: Jure <44338+hoornet@users.noreply.github.com> Date: Thu, 9 Apr 2026 19:27:22 +0200 Subject: [PATCH] =?UTF-8?q?Polish=20pass=2010=20=E2=80=94=20hover=20titles?= =?UTF-8?q?,=20focus=20rings,=20disabled=20states?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - NoteCard: title tooltip on truncated name and NIP-05 - NoteActions: emoji pill buttons dim (opacity-50) while disabled - DMView: title tooltip on truncated conv name; focus ring on send button - RelaysView: title tooltip on truncated relay URL - OnboardingFlow: title tooltips on npub/nsec (nsec only when revealed) - ArticleEditor: visible focus indicator on title and body textareas --- src/components/article/ArticleEditor.tsx | 4 ++-- src/components/dm/DMView.tsx | 4 ++-- src/components/feed/NoteActions.tsx | 2 +- src/components/feed/NoteCard.tsx | 3 ++- src/components/onboarding/OnboardingFlow.tsx | 4 ++-- src/components/shared/RelaysView.tsx | 2 +- 6 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/components/article/ArticleEditor.tsx b/src/components/article/ArticleEditor.tsx index c3fe015..959c83d 100644 --- a/src/components/article/ArticleEditor.tsx +++ b/src/components/article/ArticleEditor.tsx @@ -405,7 +405,7 @@ export function ArticleEditor() { value={title} onChange={(e) => setTitle(e.target.value)} placeholder="Title" - className="w-full bg-transparent text-text text-2xl font-bold placeholder:text-text-dim focus:outline-none" + className="w-full bg-transparent text-text text-2xl font-bold placeholder:text-text-dim focus:outline-none focus:border-b focus:border-accent/40" style={{ fontFamily: "var(--font-reading)" }} /> @@ -473,7 +473,7 @@ export function ArticleEditor() { if (Array.from(e.dataTransfer.types).includes("Files")) e.preventDefault(); }} placeholder="Write your article in Markdown… (paste or drop images)" - className="w-full h-full min-h-[400px] bg-transparent text-text text-[14px] leading-relaxed placeholder:text-text-dim resize-none focus:outline-none font-mono" + className="w-full h-full min-h-[400px] bg-transparent text-text text-[14px] leading-relaxed placeholder:text-text-dim resize-none focus:outline-none focus:border-b focus:border-accent/40 font-mono" /> ) : (
- {name} + {name} {time}
@@ -225,7 +225,7 @@ function ThreadPanel({ diff --git a/src/components/feed/NoteActions.tsx b/src/components/feed/NoteActions.tsx index 16d9d98..2e2d46e 100644 --- a/src/components/feed/NoteActions.tsx +++ b/src/components/feed/NoteActions.tsx @@ -102,7 +102,7 @@ export function NoteActions({ event, onReplyToggle, showReply }: NoteActionsProp myReactions.has(emoji) ? "border-accent/40 bg-accent/10 text-accent" : "border-border hover:border-accent/40 hover:bg-accent/5 text-text-dim" - } disabled:cursor-default`} + } disabled:cursor-default disabled:opacity-50`} > {emoji} {count} diff --git a/src/components/feed/NoteCard.tsx b/src/components/feed/NoteCard.tsx index a712663..fba91e3 100644 --- a/src/components/feed/NoteCard.tsx +++ b/src/components/feed/NoteCard.tsx @@ -100,9 +100,10 @@ export const NoteCard = memo(function NoteCard({ event, focused, onReplyInThread {nip05 && ( - + {verified === "valid" ? "✓ " : ""}{nip05} )} diff --git a/src/components/onboarding/OnboardingFlow.tsx b/src/components/onboarding/OnboardingFlow.tsx index 4969b18..4703220 100644 --- a/src/components/onboarding/OnboardingFlow.tsx +++ b/src/components/onboarding/OnboardingFlow.tsx @@ -88,7 +88,7 @@ function CreateStep({ onNext }: { onNext: (signer: NDKPrivateKeySigner) => void Your public key (npub)
- {signer.npub} + {signer.npub}
- + {revealed ? signer.nsec : "••••••••••••••••••••••••••••••••••••••••••••••••"}