Repository navigation
fix(ui): change competitor avatar background from muted to white - #19
Conversation
Transparent dark logos become invisible against the dark bg-muted background. Using white matches favicon conventions and ensures logos remain visible in both light and dark modes. Closes ansvisor#18
Large avatar containers in empty states use bg-muted which hides transparent dark logos. Switching to bg-white for consistency with the competitor avatar fix in brand settings.
|
@algojogacor is attempting to deploy a commit to the gkhngyk's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Welcome to Ansvisor, and thank you for picking this up so quickly! Merging now. The fix on the settings page is exactly right — transparent dark logos look great against the white background. I'll open a small follow-up myself to handle one dark-mode edge case (the fallback initial badge when a competitor has no domain ends up white-on-white) and to apply the same treatment to a couple of other favicon spots the issue listed. Nothing for you to do — you nailed the core bug, the polish is on me. If you want to keep going, the |
Summary
Fixes #18 — Competitor avatars with transparent dark logos become invisible against the dark
bg-mutedbackground.Root Cause
The competitor avatar elements in brand settings and competitors page use Tailwind's
bg-mutedclass, which renders as a dark gray. Favicons are conventionally designed for white backgrounds, so transparent dark logos (common for monochrome brand marks like Vercel, Linear, GitHub) blend into the background and appear invisible.Fix
Changed
bg-muted→bg-whiteon avatar-related elements in two files:settings/page.tsx(+2 -2): Competitor favicon<img>and fallback<div>(lines 497, 500)competitors/page.tsx(+2 -2): Empty-state placeholder avatar containers (lines 257, 277)Intentionally preserved
bg-mutedon non-avatar elements (code tags, progress bars, hover states).Changes
web/src/app/[locale]/(dashboard)/dashboard/brands/[id]/settings/page.tsxweb/src/app/[locale]/(dashboard)/dashboard/competitors/page.tsxTesting
bg-mutedin the modified componentsbg-muteduses (progress barsh-1.5, code tags, hover states) are untouched