From 3eb6968de0811b0f8b30b13f2b50b04e2c132af1 Mon Sep 17 00:00:00 2001 From: Jure <44338+hoornet@users.noreply.github.com> Date: Thu, 9 Apr 2026 15:47:12 +0200 Subject: [PATCH] =?UTF-8?q?Polish=20pass=204=20=E2=80=94=20remove=20remain?= =?UTF-8?q?ing=20hard-coded=20colors=20and=20inline=20styles?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Fix bg-white toggle thumbs in V4VSettings and V4VIndicator - Replace hard-coded amber nudge colors with theme 'warning' token - Remove redundant gridTemplateRows and move aspectRatio to Tailwind - Replace MarkdownToolbar inline font styles with conditional classes --- src/components/article/MarkdownToolbar.tsx | 3 +-- src/components/feed/NoteContent.tsx | 5 ++--- src/components/podcast/V4VIndicator.tsx | 5 ++--- src/components/v4v/V4VSettings.tsx | 2 +- 4 files changed, 6 insertions(+), 9 deletions(-) diff --git a/src/components/article/MarkdownToolbar.tsx b/src/components/article/MarkdownToolbar.tsx index af0722f..60e6a98 100644 --- a/src/components/article/MarkdownToolbar.tsx +++ b/src/components/article/MarkdownToolbar.tsx @@ -180,8 +180,7 @@ export function MarkdownToolbar({ textareaRef, content, setContent, setUploading key={action} onClick={() => handleClick(action)} title={title} - className="px-2 py-0.5 text-[11px] text-text-muted hover:text-text hover:bg-bg-hover transition-colors rounded-sm" - style={{ fontWeight: bold ? "bold" : undefined, fontStyle: italic ? "italic" : undefined }} + className={`px-2 py-0.5 text-[11px] text-text-muted hover:text-text hover:bg-bg-hover transition-colors rounded-sm ${bold ? "font-bold" : ""} ${italic ? "italic" : ""}`} > {label} diff --git a/src/components/feed/NoteContent.tsx b/src/components/feed/NoteContent.tsx index 137f217..e3cfac8 100644 --- a/src/components/feed/NoteContent.tsx +++ b/src/components/feed/NoteContent.tsx @@ -53,13 +53,12 @@ function ImageGrid({ images, onImageClick }: { images: string[]; onImageClick: ( if (count === 3) { return ( -