Commit c899e12
fix(readme): use picture element for dark/light mode card embed
The #gh-light-mode-only / #gh-dark-mode-only fragment approach doesn't
work with GitHub's Camo proxy — the proxy rewrites image URLs, stripping
the fragment from the rendered src attribute so GitHub's CSS selector
can't match it. Both cards showed stacked simultaneously.
Replace with the official GitHub-documented <picture> + prefers-color-scheme
approach, consistent with the OSS Insight and Star History widgets already
in this README.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 3ae311c commit c899e12
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
32 | 36 | | |
33 | 37 | | |
34 | 38 | | |
| |||
0 commit comments