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

fix: properly scale emote-only messages with custom emotes #704

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

TheOneWithTheBraid
Copy link
Collaborator

image

@TheOneWithTheBraid
Copy link
Collaborator Author

Rebased onto current changes to HTML renderer code, I'd appreciate some review, @krille-chan !

@@ -525,3 +553,15 @@ class MatrixPill extends StatelessWidget {
);
}
}

FontSize? tryGetParentFontSize(ExtensionContext context) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This function is basically the relevant part scaling custom emotes into the right parenting text size. I'm sure it could be better or "more complete" but from everything I see as of now how we use font sizes in the HTML renderer, it should work in any occurring case.

Copy link

This pull request is stale because it has been open for 120 days with no activity.

@github-actions github-actions bot added the stale The item is going to be closed soon because of inactivity label May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale The item is going to be closed soon because of inactivity
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant