mirror of
https://github.com/hoornet/vega.git
synced 2026-06-08 06:01:57 -07:00
Polish pass 12 — sentence case on ArticleView, ComposeBox, DMView, SettingsView
- ArticleView: Back, Save/Saved, Repost/Reposted, Comment, Copy link, Like/Liked, Post — all button labels capitalised (header + footer) - ComposeBox: Post, Post poll, Posting… - DMView: Send, Start - SettingsView: mute keyword placeholder + Remove button
This commit is contained in:
@@ -238,7 +238,7 @@ export function ArticleView() {
|
||||
{/* Header */}
|
||||
<header className="border-b border-border px-4 py-2.5 flex items-center justify-between shrink-0">
|
||||
<button onClick={goBack} className="text-text-dim hover:text-text text-[11px] transition-colors">
|
||||
← back
|
||||
← Back
|
||||
</button>
|
||||
<div className="flex items-center gap-2">
|
||||
{event && loggedIn && (
|
||||
@@ -251,7 +251,7 @@ export function ArticleView() {
|
||||
}`}
|
||||
title={bookmarked ? "Remove bookmark" : "Bookmark article"}
|
||||
>
|
||||
{bookmarked ? "▪ saved" : "▫ save"}
|
||||
{bookmarked ? "▪ Saved" : "▫ Save"}
|
||||
</button>
|
||||
)}
|
||||
{event && loggedIn && (
|
||||
@@ -272,7 +272,7 @@ export function ArticleView() {
|
||||
: "border-border text-text-muted hover:text-accent hover:border-accent/40"
|
||||
}`}
|
||||
>
|
||||
{reposted ? "reposted" : "repost"}
|
||||
{reposted ? "Reposted" : "Repost"}
|
||||
</button>
|
||||
)}
|
||||
{event && loggedIn && (
|
||||
@@ -284,7 +284,7 @@ export function ArticleView() {
|
||||
: "border-border text-text-muted hover:text-accent hover:border-accent/40"
|
||||
}`}
|
||||
>
|
||||
comment
|
||||
Comment
|
||||
</button>
|
||||
)}
|
||||
{naddr && (
|
||||
@@ -293,7 +293,7 @@ export function ArticleView() {
|
||||
className="text-[11px] px-3 py-1 border border-border text-text-muted hover:text-accent hover:border-accent/40 transition-colors"
|
||||
title="Copy nostr: link"
|
||||
>
|
||||
copy link
|
||||
Copy link
|
||||
</button>
|
||||
)}
|
||||
</div>
|
||||
@@ -318,7 +318,7 @@ export function ArticleView() {
|
||||
disabled={!commentText.trim()}
|
||||
className="px-3 py-1.5 bg-accent/10 text-accent text-[12px] rounded-sm hover:bg-accent/20 transition-colors disabled:opacity-40"
|
||||
>
|
||||
post
|
||||
Post
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -404,7 +404,7 @@ export function ArticleView() {
|
||||
{/* Footer */}
|
||||
<div className="mt-10 pt-6 border-t border-border flex items-center justify-between">
|
||||
<button onClick={goBack} className="text-text-dim hover:text-text text-[11px] transition-colors">
|
||||
← back
|
||||
← Back
|
||||
</button>
|
||||
<div className="flex items-center gap-2">
|
||||
{loggedIn && (
|
||||
@@ -417,7 +417,7 @@ export function ArticleView() {
|
||||
: "border-border text-text-muted hover:text-accent hover:border-accent/40"
|
||||
}`}
|
||||
>
|
||||
{reacted ? "♥ liked" : "♡ like"}
|
||||
{reacted ? "♥ Liked" : "♡ Like"}
|
||||
</button>
|
||||
)}
|
||||
{loggedIn && (
|
||||
@@ -429,7 +429,7 @@ export function ArticleView() {
|
||||
: "border-border text-text-muted hover:text-accent hover:border-accent/40"
|
||||
}`}
|
||||
>
|
||||
{bookmarked ? "▪ saved" : "▫ save"}
|
||||
{bookmarked ? "▪ Saved" : "▫ Save"}
|
||||
</button>
|
||||
)}
|
||||
{loggedIn && (
|
||||
@@ -442,7 +442,7 @@ export function ArticleView() {
|
||||
: "border-border text-text-muted hover:text-accent hover:border-accent/40"
|
||||
}`}
|
||||
>
|
||||
{reposted ? "reposted" : "repost"}
|
||||
{reposted ? "Reposted" : "Repost"}
|
||||
</button>
|
||||
)}
|
||||
{loggedIn && (
|
||||
@@ -450,7 +450,7 @@ export function ArticleView() {
|
||||
onClick={() => { setShowComment(true); scrollRef.current?.scrollTo({ top: 0, behavior: "smooth" }); }}
|
||||
className="text-[11px] px-3 py-1.5 border border-border text-text-muted hover:text-accent hover:border-accent/40 transition-colors"
|
||||
>
|
||||
comment
|
||||
Comment
|
||||
</button>
|
||||
)}
|
||||
{loggedIn && (
|
||||
|
||||
@@ -227,7 +227,7 @@ function ThreadPanel({
|
||||
disabled={!text.trim() || sending}
|
||||
className="px-3 self-end py-2 text-[11px] bg-accent hover:bg-accent-hover text-accent-text transition-colors disabled:opacity-30 disabled:cursor-not-allowed shrink-0 focus-visible:ring-1 focus-visible:ring-accent"
|
||||
>
|
||||
{sending ? "…" : "send"}
|
||||
{sending ? "…" : "Send"}
|
||||
</button>
|
||||
</div>
|
||||
<p className="text-text-dim text-[10px] mt-1">Ctrl+Enter to send · gift-wrapped (NIP-17)</p>
|
||||
@@ -276,7 +276,7 @@ function NewConvInput({ onStart }: { onStart: (pubkey: string) => void }) {
|
||||
disabled={!input.trim()}
|
||||
className="px-2 py-1.5 text-[10px] border border-border text-text-dim hover:text-accent hover:border-accent/40 transition-colors disabled:opacity-30 shrink-0"
|
||||
>
|
||||
start
|
||||
Start
|
||||
</button>
|
||||
</div>
|
||||
{error && <p className="text-danger text-[10px] mt-1">{error}</p>}
|
||||
|
||||
@@ -341,7 +341,7 @@ export function ComposeBox({ onPublished, onNoteInjected }: { onPublished?: () =
|
||||
disabled={!canPost}
|
||||
className="px-3 py-1 text-[11px] bg-accent hover:bg-accent-hover text-accent-text rounded-sm transition-colors disabled:opacity-30 disabled:cursor-not-allowed"
|
||||
>
|
||||
{publishing ? "posting…" : isPoll ? "post poll" : "post"}
|
||||
{publishing ? "Posting…" : isPoll ? "Post poll" : "Post"}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -110,7 +110,7 @@ function MutedKeywordsSection() {
|
||||
onClick={() => removeKeyword(kw)}
|
||||
className="text-text-dim hover:text-danger text-[10px] opacity-0 group-hover:opacity-100 transition-opacity shrink-0"
|
||||
>
|
||||
remove
|
||||
Remove
|
||||
</button>
|
||||
</div>
|
||||
))}
|
||||
@@ -121,7 +121,7 @@ function MutedKeywordsSection() {
|
||||
value={input}
|
||||
onChange={(e) => { setInput(e.target.value); setError(null); }}
|
||||
onKeyDown={handleKeyDown}
|
||||
placeholder="word or phrase to mute"
|
||||
placeholder="Word or phrase to mute"
|
||||
className="flex-1 bg-bg border border-border px-3 py-1.5 text-text text-[12px] focus:outline-none focus:border-accent/50 placeholder:text-text-dim"
|
||||
/>
|
||||
<button
|
||||
|
||||
Reference in New Issue
Block a user