mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
Upsize svg identicons
The chrome.notifications api renders iconUrls at full bleed, as opposed to the Web Notifications api, which adds padding. This was causing our identicons to look a bit over stretched. Fixed by rendering them a bit larger and with some padding. // FREEBIE
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
var img = document.createElement('img');
|
||||
img.onload = function () {
|
||||
var canvas = loadImage.scale(img, {
|
||||
canvas: true, maxWidth: 44, maxHeight: 44
|
||||
canvas: true, maxWidth: 100, maxHeight: 100
|
||||
});
|
||||
var ctx = canvas.getContext('2d');
|
||||
ctx.drawImage(img, 0, 0);
|
||||
|
||||
Reference in New Issue
Block a user