mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
3.0.5597.1
This commit is contained in:
parent
77fb2070f5
commit
81cfd99137
4 changed files with 46 additions and 23 deletions
|
@ -275,15 +275,19 @@
|
||||||
|
|
||||||
@media all and (min-width: 540px) {
|
@media all and (min-width: 540px) {
|
||||||
|
|
||||||
.portraitCard {
|
|
||||||
width: 25%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.smallBackdropCard {
|
.smallBackdropCard {
|
||||||
width: 33.3%;
|
width: 33.3%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@media all and (min-width: 640px) {
|
||||||
|
|
||||||
|
.portraitCard {
|
||||||
|
width: 25%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@media all and (min-width: 700px) {
|
@media all and (min-width: 700px) {
|
||||||
.backdropCard {
|
.backdropCard {
|
||||||
width: 33.3%;
|
width: 33.3%;
|
||||||
|
|
|
@ -156,6 +156,12 @@ h1 a:hover {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ui-slider-track.ui-mini .ui-slider-handle {
|
||||||
|
height: 18px;
|
||||||
|
width: 18px;
|
||||||
|
margin: -10px 0 0 -10px;
|
||||||
|
}
|
||||||
|
|
||||||
.largePanel {
|
.largePanel {
|
||||||
width: 270px;
|
width: 270px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -253,27 +253,40 @@
|
||||||
|
|
||||||
html += '<div class="sidebarLinks librarySidebarLinks">';
|
html += '<div class="sidebarLinks librarySidebarLinks">';
|
||||||
|
|
||||||
html += '<a style="margin-top:0;padding-left:.6em;display:block;color:#fff;text-decoration:none;font-size:16px;font-weight:400!important;background: #000;" href="mypreferencesdisplay.html?userId=' + Dashboard.getCurrentUserId() + '">';
|
//var userHref = user.localUser && user.localUser.Policy.EnableUserPreferenceAccess ?
|
||||||
|
// 'mypreferencesdisplay.html?userId=' + user.localUser.Id :
|
||||||
|
// (user.localUser ? 'index.html' : '#');
|
||||||
|
|
||||||
var imgWidth = 48;
|
//var paddingLeft = user.imageUrl ? 'padding-left:.7em;' : '';
|
||||||
|
//html += '<a style="margin-top:0;' + paddingLeft + 'display:block;color:#fff;text-decoration:none;font-size:16px;font-weight:400!important;background: #000;" href="' + userHref + '">';
|
||||||
|
|
||||||
if (user.imageUrl) {
|
//var imgWidth = 44;
|
||||||
var url = user.imageUrl;
|
|
||||||
|
|
||||||
if (user.supportsImageParams) {
|
//if (user.imageUrl) {
|
||||||
url += "&width=" + (imgWidth * Math.max(devicePixelRatio || 1, 2));
|
// var url = user.imageUrl;
|
||||||
}
|
|
||||||
|
|
||||||
html += '<img style="max-width:' + imgWidth + 'px;vertical-align:middle;margin-right:.8em;border-radius: 50px;" src="' + url + '" />';
|
// if (user.supportsImageParams) {
|
||||||
}
|
// url += "&width=" + (imgWidth * Math.max(devicePixelRatio || 1, 2));
|
||||||
html += user.name;
|
// }
|
||||||
html += '</a>';
|
|
||||||
|
|
||||||
html += '<div class="libraryMenuDivider" style="margin-top:0;"></div>';
|
// html += '<img style="max-width:' + imgWidth + 'px;vertical-align:middle;margin-right:.8em;border-radius: 50px;" src="' + url + '" />';
|
||||||
|
//} else {
|
||||||
|
// html += '<span class="fa fa-user sidebarLinkIcon"></span>';
|
||||||
|
//}
|
||||||
|
|
||||||
|
//html += user.name;
|
||||||
|
//html += '</a>';
|
||||||
|
|
||||||
var homeHref = ConnectionManager.currentApiClient() ? 'index.html' : 'selectserver.html';
|
var homeHref = ConnectionManager.currentApiClient() ? 'index.html' : 'selectserver.html';
|
||||||
|
|
||||||
html += '<a class="lnkMediaFolder sidebarLink homeViewMenu" href="' + homeHref + '"><span class="fa fa-home sidebarLinkIcon"></span>' + Globalize.translate('ButtonHome') + '</a>';
|
html += '<a class="lnkMediaFolder sidebarLink" style="margin-top:.5em;padding-left:1em;display:block;color:#fff;text-decoration:none;" href="' + homeHref + '">';
|
||||||
|
|
||||||
|
html += '<img style="max-width:36px;vertical-align:middle;margin-right:1em;" src="css/images/mblogoicon.png" />';
|
||||||
|
|
||||||
|
html += Globalize.translate('ButtonHome');
|
||||||
|
html += '</a>';
|
||||||
|
|
||||||
|
html += '<div class="libraryMenuDivider" style="margin-top:0;"></div>';
|
||||||
|
|
||||||
html += getViewsHtml();
|
html += getViewsHtml();
|
||||||
html += '</div>';
|
html += '</div>';
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
var screenWidth = $(window).width();
|
var screenWidth = $(window).width();
|
||||||
|
|
||||||
return screenWidth >= 1920 ? 9 : 8;
|
return screenWidth >= 1920 ? 9 : (screenWidth >= 1200 ? 12 : (screenWidth >= 1000 ? 10 : 8));
|
||||||
}
|
}
|
||||||
|
|
||||||
function loadLatest(page, parentId) {
|
function loadLatest(page, parentId) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue