mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update image sizes
This commit is contained in:
parent
589ad2de70
commit
16f30944f8
7 changed files with 260 additions and 51 deletions
|
@ -590,10 +590,10 @@
|
|||
getClientImage: function (connection) {
|
||||
|
||||
var clientLowered = connection.Client.toLowerCase();
|
||||
var device = connection.DeviceName.toLowerCase();
|
||||
|
||||
if (clientLowered == "dashboard" || clientLowered == "emby web client" || clientLowered == "emby mobile") {
|
||||
|
||||
var device = connection.DeviceName.toLowerCase();
|
||||
if (clientLowered == "dashboard" || clientLowered == "emby web client") {
|
||||
|
||||
var imgUrl;
|
||||
|
||||
|
@ -615,6 +615,19 @@
|
|||
|
||||
return "<img src='" + imgUrl + "' alt='Emby Web Client' />";
|
||||
}
|
||||
if (clientLowered == "emby mobile") {
|
||||
|
||||
var imgUrl;
|
||||
|
||||
if (device.indexOf('iphone') != -1 || device.indexOf('ipad') != -1) {
|
||||
imgUrl = 'css/images/clients/ios.png';
|
||||
}
|
||||
else {
|
||||
imgUrl = 'css/images/clients/html5.png';
|
||||
}
|
||||
|
||||
return "<img src='" + imgUrl + "' alt='Emby Web Client' />";
|
||||
}
|
||||
if (clientLowered == "mb-classic") {
|
||||
|
||||
return "<img src='css/images/clients/mbc.png' />";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue