From 9051c142052fb3105f267be7efce4a1c11c23110 Mon Sep 17 00:00:00 2001 From: Jure <44338+hoornet@users.noreply.github.com> Date: Mon, 18 May 2026 18:17:13 +0200 Subject: [PATCH] polish: capitalise sidebar labels, rounded avatars, stronger article titles - sidebar nav labels Title Case; follows -> People, dm -> Messages - NoteCard + ArticleCard avatars rounded-sm -> rounded-md - ArticleCard title 14px/medium -> 15px/semibold; larger tag pills --- src/components/article/ArticleCard.tsx | 8 +++---- src/components/feed/NoteCard.tsx | 4 ++-- src/components/sidebar/Sidebar.tsx | 32 +++++++++++++------------- 3 files changed, 22 insertions(+), 22 deletions(-) diff --git a/src/components/article/ArticleCard.tsx b/src/components/article/ArticleCard.tsx index fae7bf8..2bdfc0f 100644 --- a/src/components/article/ArticleCard.tsx +++ b/src/components/article/ArticleCard.tsx @@ -52,7 +52,7 @@ export const ArticleCard = memo(function ArticleCard({ event }: { event: NDKEven {/* Text content */}
{/* Title */} -

+

{title || "Untitled"}

@@ -73,11 +73,11 @@ export const ArticleCard = memo(function ArticleCard({ event }: { event: NDKEven {`${authorName}'s { (e.target as HTMLImageElement).style.display = "none"; }} /> ) : ( -
+
{authorName.charAt(0).toUpperCase()}
)} @@ -96,7 +96,7 @@ export const ArticleCard = memo(function ArticleCard({ event }: { event: NDKEven {tags.length > 0 && (
{tags.slice(0, 5).map((tag) => ( - + #{tag} ))} diff --git a/src/components/feed/NoteCard.tsx b/src/components/feed/NoteCard.tsx index 1503a71..0f327f1 100644 --- a/src/components/feed/NoteCard.tsx +++ b/src/components/feed/NoteCard.tsx @@ -86,14 +86,14 @@ export const NoteCard = memo(function NoteCard({ event, focused, onReplyInThread alt={`${name}'s avatar`} width={36} height={36} - className="w-9 h-9 rounded-sm object-cover bg-bg-raised ring-1 ring-transparent hover:ring-accent/40 transition-all" + className="w-9 h-9 rounded-md object-cover bg-bg-raised ring-1 ring-transparent hover:ring-accent/40 transition-all" loading="lazy" onError={(e) => { (e.target as HTMLImageElement).style.display = "none"; }} /> ) : ( -
+
{name.charAt(0).toUpperCase()}
)} diff --git a/src/components/sidebar/Sidebar.tsx b/src/components/sidebar/Sidebar.tsx index ce001d8..1d5297e 100644 --- a/src/components/sidebar/Sidebar.tsx +++ b/src/components/sidebar/Sidebar.tsx @@ -9,20 +9,20 @@ import pkg from "../../../package.json"; // Items marked `requiresSigner: true` are hidden in read-only mode // because they're account-bound and have no useful content without a signer. const NAV_ITEMS = [ - { id: "feed" as const, label: "feed", icon: "◈" }, - { id: "articles" as const, label: "articles", icon: "☰" }, - { id: "media" as const, label: "media", icon: "▶" }, - { id: "podcasts" as const, label: "podcasts", icon: "🎙" }, - { id: "search" as const, label: "search", icon: "⌕" }, - { id: "bookmarks" as const, label: "bookmarks", icon: "★", requiresSigner: true }, - { id: "dm" as const, label: "messages", icon: "✉", requiresSigner: true }, - { id: "notifications" as const, label: "notifications", icon: "🔔", requiresSigner: true }, - { id: "follows" as const, label: "follows", icon: "👥" }, - { id: "zaps" as const, label: "zaps", icon: "⚡", requiresSigner: true }, - { id: "v4v" as const, label: "v4v", icon: "📡", requiresSigner: true }, - { id: "relays" as const, label: "relays", icon: "⟐" }, - { id: "settings" as const, label: "settings", icon: "⚙" }, - { id: "about" as const, label: "support", icon: "♥" }, + { id: "feed" as const, label: "Feed", icon: "◈" }, + { id: "articles" as const, label: "Articles", icon: "☰" }, + { id: "media" as const, label: "Media", icon: "▶" }, + { id: "podcasts" as const, label: "Podcasts", icon: "🎙" }, + { id: "search" as const, label: "Search", icon: "⌕" }, + { id: "bookmarks" as const, label: "Bookmarks", icon: "★", requiresSigner: true }, + { id: "dm" as const, label: "Messages", icon: "✉", requiresSigner: true }, + { id: "notifications" as const, label: "Notifications", icon: "🔔", requiresSigner: true }, + { id: "follows" as const, label: "People", icon: "👥" }, + { id: "zaps" as const, label: "Zaps", icon: "⚡", requiresSigner: true }, + { id: "v4v" as const, label: "Value 4 Value", icon: "📡", requiresSigner: true }, + { id: "relays" as const, label: "Relays", icon: "⟐" }, + { id: "settings" as const, label: "Settings", icon: "⚙" }, + { id: "about" as const, label: "Support", icon: "♥" }, ] as const; export function Sidebar() { @@ -57,7 +57,7 @@ export function Sidebar() { /* Expanded: brand on left, collapse chevron on right */ <>
- VEGA + VEGA v{pkg.version}