mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-02 14:16:39 +01:00
Better fallbacks
This commit is contained in:
parent
36d8b62e1e
commit
b10e22a9a2
1 changed files with 4 additions and 2 deletions
|
@ -1,9 +1,11 @@
|
||||||
export default function CustomEmoji({ staticUrl, alt, url }) {
|
export default function CustomEmoji({ staticUrl, alt, url }) {
|
||||||
return (
|
return (
|
||||||
<picture>
|
<picture>
|
||||||
|
{staticUrl && (
|
||||||
<source srcset={staticUrl} media="(prefers-reduced-motion: reduce)" />
|
<source srcset={staticUrl} media="(prefers-reduced-motion: reduce)" />
|
||||||
|
)}
|
||||||
<img
|
<img
|
||||||
key={alt}
|
key={alt || url}
|
||||||
src={url}
|
src={url}
|
||||||
alt={alt}
|
alt={alt}
|
||||||
class="shortcode-emoji emoji"
|
class="shortcode-emoji emoji"
|
||||||
|
|
Loading…
Reference in a new issue