Skip to content

Commit

Permalink
Merge branch 'rm/371272' into 'master'
Browse files Browse the repository at this point in the history
fix: use transform: scale property instead of zoom for browser compatibility

See merge request kchat/webapp!961
  • Loading branch information
antonbuks committed Nov 1, 2024
2 parents 69030f9 + d22fdce commit 065bcb8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
7 changes: 3 additions & 4 deletions webapp/channels/src/sass/components/_emojisprite.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
cursor: pointer;
-moz-transform: scale(0.5);
transform-origin: 0 0;
// Using zoom for now as it results in less blurry emojis on Chrome - MM-34178
zoom: 0.5;
transform: scale(0.5); // IK modifications : use transform: scale() instead of zoom for browser compatibility
}

.emojisprite {
Expand All @@ -21,7 +20,7 @@
border-radius: 18px;
cursor: pointer;
-moz-transform: scale(0.35);
zoom: 0.35;
transform: scale(0.35);
}

.emojisprite-loading {
Expand All @@ -33,7 +32,7 @@
border-radius: 18px;
cursor: pointer;
-moz-transform: scale(0.35);
zoom: 0.35;
transform: scale(0.35);
}

.emoji-category-recent { background-image: url('images/emoji-sheets/apple-sheet.png'); }
Expand Down
5 changes: 2 additions & 3 deletions webapp/channels/src/sass/components/_emoticons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -546,12 +546,11 @@ $emoji-footer-height: $emoji-footer-border-width + $emoji-half-height + $emoji-p

img {
-moz-transform: scale(0.45);
zoom: 0.45;
transform: scale(0.45); // IK modifications : use transform: scale() instead of zoom for browser compatibility

&.emoji-category--custom {
-moz-transform: scale(1);
transform: scale(1.25);
zoom: 1;
transform: scale(1);
}
}
}
Expand Down

0 comments on commit 065bcb8

Please sign in to comment.