Skip to content

fix(ui): change competitor avatar background from muted to white - #19

Merged
gkhngyk merged 2 commits into
ansvisor:mainfrom
algojogacor:fix/avatar-bg-white
May 15, 2026
Merged

gkhngyk merged 2 commits into
ansvisor:mainfrom
algojogacor:fix/avatar-bg-white

Conversation

@algojogacor

Copy link
Copy Markdown
Contributor

Summary

Fixes #18 — Competitor avatars with transparent dark logos become invisible against the dark bg-muted background.

Root Cause

The competitor avatar elements in brand settings and competitors page use Tailwind's bg-muted class, 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-white on 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-muted on non-avatar elements (code tags, progress bars, hover states).

Changes

File + -
web/src/app/[locale]/(dashboard)/dashboard/brands/[id]/settings/page.tsx 2 2
web/src/app/[locale]/(dashboard)/dashboard/competitors/page.tsx 2 2

Testing

  1. Verified the exact class strings exist in source before patching
  2. Confirmed no remaining avatar-related bg-muted in the modified components
  3. Other bg-muted uses (progress bars h-1.5, code tags, hover states) are untouched

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.
@vercel

vercel Bot commented May 15, 2026

Copy link
Copy Markdown

@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.

@vercel

vercel Bot commented May 15, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ansvisor Ready Ready Preview, Comment May 15, 2026 4:47pm

Request Review

@gkhngyk
gkhngyk merged commit e0e2bb4 into ansvisor:main May 15, 2026
1 check passed
@gkhngyk

gkhngyk commented May 15, 2026

Copy link
Copy Markdown
Contributor

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 good first issue label has more where this came from. Looking forward to your next one.

This branch was successfully deployed

1 active deployment
Preview — 9ac0bc8b Deployed May 15, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(ui): competitor avatar background hides transparent logos

2 participants