-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
fix(message-reader): complex html email rendering incorrectly #10076
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(message-reader): complex html email rendering incorrectly #10076
Conversation
c86d6a8 to
b34acc8
Compare
wmontwe
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job! Couldn't spot new issues while browsing my emails and issues seem to be resolved.
app-thunderbird/src/daily/kotlin/net/thunderbird/android/featureflag/TbFeatureFlagFactory.kt
Outdated
Show resolved
Hide resolved
b34acc8 to
ad98cb3
Compare
wmontwe
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
ad98cb3 to
223801c
Compare
…irectly on DisplayHtml The key changes include: - Moving `HtmlSettings.kt` and `HtmlSettingsProvider.kt` to :core:common. - Introducing `CssClassNameProvider`, `GlobalCssStyleProvider`, `PlainTextMessagePreElementCssStyleProvider`, and `SignatureCssStyleProvider` to dynamically generate CSS for message display. - Updating `DisplayHtml`, `HtmlProcessor`, and their factories to use these new providers. - Refactoring dependency injection to provide the new CSS services. - Using CSS variables for blockquote border colors in `EmailTextToHtml`.
223801c to
d3e565f
Compare
wmontwe
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
|
very interesting, I will report back once this hits a release and give feedback here |
Fixes #3172.
This PR will address the majority of emails with complex HTML and CSS being rendered incorrectly. Large images and tables will still zoom out the WebView.
:feature:mail:message:reader:apiand:feature:mail:message:reader:implmodulesDisplayHtmltoCssStyleProviderinterface implementations, enabling old CSS fallback when the feature flag is offFor future improvements: