Skip to content

Drop the blue circle behind element icons - #63

Merged
dfalling merged 1 commit into
mainfrom
cleanup-blue-circles
Jul 27, 2026
Merged

Drop the blue circle behind element icons#63
dfalling merged 1 commit into
mainfrom
cleanup-blue-circles

Conversation

@dfalling

Copy link
Copy Markdown
Owner

Summary

The previous PR (#62) gave the map pins red teardrops, but the map tooltip and the element detail screen still framed the same element's emoji in a solid blue accent disc — so one place said red and the other said blue for the same saved place. The disc also rendered unconditionally, meaning an element with icon: "" showed an empty blue circle holding nothing.

  • Removed the iconWrap badge from ElementPreviewCard and ElementDetailScreen rather than recoloring it: the emoji already carries its own color, and a filled shape behind it only competes with it.
  • The glyph is now a direct flex child conditional on element.icon, so no icon renders nothing at all and the title/address fill the space instead of indenting past an empty placeholder.
  • Bumped the glyph one size in each spot (22→28 in the tooltip, 28→36 in the hero) to keep the visual weight the disc used to carry.

theme.accent is still used for links and label chips, so no theme token became dead here.

Test plan

  • bunx tsc --noEmit — clean
  • bun run lint — clean
  • bun run test -- --ci — 7 passed

🤖 Generated with Claude Code

The last commit gave the map pins red teardrops, but the tooltip and the
detail screen still framed the same element's emoji in a solid blue
`accent` disc, so one place said red and the other said blue. The disc
also rendered unconditionally: an element with `icon: ""` showed an empty
blue circle holding nothing.

Remove the badge instead of recoloring it — the emoji already carries its
own color, and a filled shape behind it only competes. Rendering the
glyph as a direct flex child means no icon renders no element at all, so
the title and address start at the card edge rather than indenting past
a placeholder. Bump the glyph a size to keep the visual weight the disc
used to carry.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@dfalling
dfalling enabled auto-merge (squash) July 27, 2026 10:21
@dfalling
dfalling merged commit a0a5ad2 into main Jul 27, 2026
2 checks passed
@dfalling
dfalling deleted the cleanup-blue-circles branch July 27, 2026 10:25
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.

1 participant