Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Override font for usercontent download link #3035

Merged
merged 1 commit into from
May 29, 2019

Conversation

bwindels
Copy link
Contributor

@bwindels bwindels commented May 29, 2019

Fixes element-hq/element-web#9867

The download link in encrypted rooms is rendered in an iframe, with all (inherited) styles from the app applied to the inline style of the link. So font-family is copied over, including Nunito and the (native) emoji fonts. None of the webfonts are loaded though, so it will fallback to the first native font that can render a glyph, which appears to be the emoji font for numbers.

Ideally we'd render the link in Nunito, but that would be a bit more involved, so override the font-family to Arial, ... which was the font the link was rendered with in practice in the past.

@bwindels bwindels requested a review from a team May 29, 2019 09:08
Copy link
Collaborator

@jryans jryans left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's definitely a strange one! Thanks for fixing. 😁

@jryans
Copy link
Collaborator

jryans commented May 29, 2019

Going to merge and prepare the release version.

@jryans jryans merged commit 84dc2f8 into develop May 29, 2019
@jryans jryans changed the title override font for usercontent download link Override font for usercontent download link May 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Clicking "Decrypt" on a file turns the filesize numbers into emoji
2 participants