1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

improve user image resolution

This commit is contained in:
Luke Pulverenti 2015-04-27 14:52:54 -04:00
parent 4ae4c4e71a
commit 1ad8c6e955
4 changed files with 26 additions and 6 deletions

View file

@ -583,7 +583,7 @@ var Dashboard = {
var url = user.imageUrl;
if (user.supportsImageParams) {
url += "&width=" + imgWidth;
url += "&width=" + (imgWidth * Math.max(devicePixelRatio || 1, 2));
}
html += '<img style="max-width:' + imgWidth + 'px;vertical-align:middle;margin-right:.5em;border-radius: 50px;" src="' + url + '" />';