Skip to content

Commit

Permalink
[FIX] web_editor: resize favicon preview image
Browse files Browse the repository at this point in the history
Steps to reproduce:

  - Install Website
  - Go to Settings -> Website
  - Replace favicon with a 'big' image
  - Go to Website and edit any page
  - Click on Home

Issue:

  Favicon preview in popover is too big.

Solution:

  Set a max height/width for favicon preview (16x16).

opw-2744522

closes odoo#84065

Signed-off-by: Romain Derie (rde) <rde@odoo.com>
  • Loading branch information
nboulif committed Feb 7, 2022
1 parent 0304efa commit bb90ff7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions addons/web_editor/static/src/scss/wysiwyg.scss
Original file line number Diff line number Diff line change
Expand Up @@ -797,6 +797,11 @@ img::selection {
// buttons in the popover
user-select: none;

.o_we_preview_favicon > img {
max-height: 16px;
max-width: 16px;
}

.o_we_url_link {
word-break: break-all;
}
Expand Down

0 comments on commit bb90ff7

Please sign in to comment.