mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
centralize page size value
This commit is contained in:
parent
282f3a31c9
commit
328cfd9f2d
3 changed files with 70 additions and 48 deletions
|
@ -33,7 +33,7 @@ body {
|
|||
h1 {
|
||||
font-family: 'Segoe UI Light', 'Open Sans', Arial, Helvetica, sans-serif;
|
||||
font-weight: 200;
|
||||
font-size: 28pt;
|
||||
font-size: 22pt;
|
||||
}
|
||||
|
||||
.toolsSidebar h1 {
|
||||
|
@ -48,8 +48,18 @@ h1 {
|
|||
h2 {
|
||||
font-family: 'Segoe UI Semiight', 'Open Sans', Arial, Helvetica, sans-serif;
|
||||
font-weight: 400;
|
||||
font-size: 20pt;
|
||||
}
|
||||
|
||||
@media all and (min-width: 750px) {
|
||||
h1 {
|
||||
font-size: 28pt;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 22pt;
|
||||
}
|
||||
}
|
||||
|
||||
pre, textarea.pre {
|
||||
display: block;
|
||||
|
@ -823,6 +833,7 @@ progress {
|
|||
border: 0;
|
||||
background: none;
|
||||
}
|
||||
|
||||
.vjs-default-skin .vjs-play-control {
|
||||
width: 2em;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,13 @@
|
|||
var LibraryBrowser = {
|
||||
|
||||
getDetaultPageSize: function() {
|
||||
|
||||
if (window.location.toString().toLowerCase().indexOf('localhost') != -1) {
|
||||
return 100;
|
||||
}
|
||||
return 25;
|
||||
},
|
||||
|
||||
getPosterViewHtml: function (options) {
|
||||
|
||||
var items = options.items;
|
||||
|
@ -27,6 +35,7 @@
|
|||
height: 198,
|
||||
width: 352,
|
||||
tag: item.BackdropImageTags[0]
|
||||
|
||||
}) + "' />";
|
||||
} else if (hasPrimaryImage) {
|
||||
|
||||
|
@ -38,6 +47,7 @@
|
|||
height: height,
|
||||
width: width,
|
||||
tag: item.ImageTags.Primary
|
||||
|
||||
}) + "' />";
|
||||
|
||||
} else if (item.BackdropImageTags && item.BackdropImageTags.length) {
|
||||
|
@ -46,6 +56,7 @@
|
|||
height: 198,
|
||||
width: 352,
|
||||
tag: item.BackdropImageTags[0]
|
||||
|
||||
}) + "' />";
|
||||
}
|
||||
else if (item.MediaType == "Audio" || item.Type == "MusicAlbum" || item.Type == "MusicArtist") {
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
IncludeItemTypes: "Movie",
|
||||
Recursive: true,
|
||||
Fields: "PrimaryImageAspectRatio,UserData,DisplayMediaType",
|
||||
Limit: 100,
|
||||
Limit: LibraryBrowser.getDetaultPageSize(),
|
||||
StartIndex: 0
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue