web/emoji: replace high detail svgs with pngs

- fixes blurry svg rendering in safari
- removes unused 3d emoji
This commit is contained in:
wukko
2024-05-12 19:37:56 +06:00
parent d57fe93234
commit 81ef49c104
9 changed files with 1 additions and 2104 deletions

View File

@@ -61,6 +61,6 @@ export default function(emoji, size, disablePadding, fluent) {
if (!names[emoji]) emoji = "❓";
let filePath = `emoji/${names[emoji]}.svg`;
if (fluent) filePath = `emoji/3d/${names[emoji]}.svg`;
if (fluent) filePath = `emoji/3d/${names[emoji]}.png`;
return `<img class="emoji" draggable=false height="${size}" width="${size}" ${padding ? `style="${padding}" ` : ''}alt="${emoji}" src="${filePath}" loading="lazy">`
}