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] mass_mailing, web_editor: edit font awesome icon with zoom #43949

Conversation

nle-odoo
Copy link
Contributor

In case of font-awesome icon when the browser is being zoomed, we can
get a decimal font-size.

There is a system that transform font-awesome in image links so they are
readable in any email client (supporting image) but it did not take into
account decimal font-size.

With this changeset, we only send a integer font size: we do not try to
get the original value because styling is relative on elements, a 90%
zoom ratio could lead to a 98% font-awesome icon ratio.

Also improve edition of font-awesome icon edition after first save by
reverting the transformation to image on edit. Thanks to that, the
original size will also be reinstated and will not depend on zoom on
previous save.

opw-2156069

@nle-odoo nle-odoo added the OE the report is linked to a support ticket (opw-...) label Jan 24, 2020
@nle-odoo nle-odoo force-pushed the 13.0-mass-mailing-web-editor-opw-2156069-nle branch from a458394 to d10de6a Compare January 24, 2020 17:07
In case of font-awesome icon when the browser is being zoomed, we can
get a decimal font-size.

There is a system that transform font-awesome in image links so they are
readable in any email client (supporting image) but it did not take into
account decimal font-size.

With this changeset, we only send a integer font size: we do not try to
get the original value because styling is relative on elements, a 90%
zoom ratio could lead to a 98% font-awesome icon ratio.

Also improve edition of font-awesome icon edition after first save by
reverting the transformation to image on edit. Thanks to that, the
original size will also be reinstated and will not depend on zoom on
previous save.

opw-2156069
closes odoo#43949
@robodoo robodoo added seen 🙂 CI 🤖 Robodoo has seen passing statuses labels Jan 24, 2020
@nle-odoo
Copy link
Contributor Author

checked with chm, seems to make sense

robodoo r+

@robodoo robodoo closed this in fe72bf0 Jan 27, 2020
@robodoo robodoo temporarily deployed to merge January 27, 2020 15:36 Inactive
fw-bot pushed a commit to odoo-dev/odoo that referenced this pull request Jan 27, 2020
In case of font-awesome icon when the browser is being zoomed, we can
get a decimal font-size.

There is a system that transform font-awesome in image links so they are
readable in any email client (supporting image) but it did not take into
account decimal font-size.

With this changeset, we only send a integer font size: we do not try to
get the original value because styling is relative on elements, a 90%
zoom ratio could lead to a 98% font-awesome icon ratio.

Also improve edition of font-awesome icon edition after first save by
reverting the transformation to image on edit. Thanks to that, the
original size will also be reinstated and will not depend on zoom on
previous save.

opw-2156069
closes odoo#43949

X-original-commit: fe72bf0
@nle-odoo nle-odoo deleted the 13.0-mass-mailing-web-editor-opw-2156069-nle branch January 27, 2020 15:58
fw-bot pushed a commit to odoo-dev/odoo that referenced this pull request Jan 27, 2020
In case of font-awesome icon when the browser is being zoomed, we can
get a decimal font-size.

There is a system that transform font-awesome in image links so they are
readable in any email client (supporting image) but it did not take into
account decimal font-size.

With this changeset, we only send a integer font size: we do not try to
get the original value because styling is relative on elements, a 90%
zoom ratio could lead to a 98% font-awesome icon ratio.

Also improve edition of font-awesome icon edition after first save by
reverting the transformation to image on edit. Thanks to that, the
original size will also be reinstated and will not depend on zoom on
previous save.

opw-2156069
closes odoo#43949

X-original-commit: fe72bf0
@fw-bot
Copy link
Contributor

fw-bot commented Jan 31, 2020

This pull request has forward-port PRs awaiting action (not merged or closed): #44030, #44033

robodoo pushed a commit that referenced this pull request Jan 31, 2020
In case of font-awesome icon when the browser is being zoomed, we can
get a decimal font-size.

There is a system that transform font-awesome in image links so they are
readable in any email client (supporting image) but it did not take into
account decimal font-size.

With this changeset, we only send a integer font size: we do not try to
get the original value because styling is relative on elements, a 90%
zoom ratio could lead to a 98% font-awesome icon ratio.

Also improve edition of font-awesome icon edition after first save by
reverting the transformation to image on edit. Thanks to that, the
original size will also be reinstated and will not depend on zoom on
previous save.

opw-2156069
closes #43949

closes #44030

X-original-commit: fe72bf0
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
robodoo pushed a commit that referenced this pull request Jan 31, 2020
In case of font-awesome icon when the browser is being zoomed, we can
get a decimal font-size.

There is a system that transform font-awesome in image links so they are
readable in any email client (supporting image) but it did not take into
account decimal font-size.

With this changeset, we only send a integer font size: we do not try to
get the original value because styling is relative on elements, a 90%
zoom ratio could lead to a 98% font-awesome icon ratio.

Also improve edition of font-awesome icon edition after first save by
reverting the transformation to image on edit. Thanks to that, the
original size will also be reinstated and will not depend on zoom on
previous save.

opw-2156069
closes #43949

closes #44033

X-original-commit: fe72bf0
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI 🤖 Robodoo has seen passing statuses OE the report is linked to a support ticket (opw-...)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants