[bug] Broken emoji width in WebKit browsers (Safari) #295
Labels
No labels
a11y
Bug
Bug fix
Critical Priority
Documentation
Feature
Feature request
Held for next release cycle
High Priority
Low Priority
Medium Priority
Minor change
Translation/Locale
WIP
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: AkkomaGang/akkoma-fe#295
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Version
I don't run it but I notice it on ihba's FE and others
What were you trying to do?
N/A
What did you expect to happen?
What actually happened?
Introduced by #284. No idea how to fix it, besides reverting. Also brought up by #291. Running Safari 16.3 on macOS Ventura 13.2.1 (basically latest Safari
Safari sets the width of the emoji to the width of the image, and does not size it based on its width/height ratio and the actual height given.
Removing the
width: 100%;
rule on.still-image img
seems to fix it, but I have no way of checking if that breaks wide emoji.Severity
I can manage
Have you searched for this issue?
This issue is very annoying. I hope it gets more focus.
Every iOS browser is WebKit based, so we cannot avoid this issue for people who use iOS.
patches welcome
@floatingghost @helene Can we just re-open PR #291 and merge?
I try it locally, only adding
width: var(--emoji-size, 32px);
to.emoji
solved this issue.I got many complains from instance users regarding this.
For instance admin, the interim solution is add this to
custom.css
on your frontend