ClimateTown / knowledge-hub

Your one-stop shop in the fight against climate change, containing important climate resources you wish you knew about yesterday.
https://hub.climatetownproductions.com
Creative Commons Attribution 4.0 International
36 stars 25 forks source link

[BUG] Inconsistent emojis #181

Open VeckoTheGecko opened 1 year ago

VeckoTheGecko commented 1 year ago

Describe the bug Emojis on the website are a mix of Twemoji emojis and default (platform specific) emojis.

image

It would be good to make all the emojis Twemoji for consistency.

I'm not entirely sure the source of the problem. It could be that emojis are only replaced with the Twemoji images on initial page load, and that for some reason doesn't capture all the emojis.

https://github.com/ClimateTown/knowledge-hub/blob/afede1e734049e80854ff452108b765f7b6a1dc4/src/routes/%2Blayout.svelte#L2-L18

liamlaverty commented 1 year ago

I took a quick look at this today, and I get strange results in Firefox and Edge. The first time I loaded the page, I had Twemoji on the left menu, but device emoji the Filter section. Then, after making no changes, I get Twemoji on all emoji on the visible page (see image 1).

Details that might help anyone else returning to this issue:

Image 1: above the fold twemoji are rendered: image

Image 2: on lazy loaded content, device emoji are rendered: image