1
0
Fork 0
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:
Luke Pulverenti 2013-04-09 12:42:55 -04:00
parent 282f3a31c9
commit 328cfd9f2d
3 changed files with 70 additions and 48 deletions

View file

@ -33,7 +33,7 @@ body {
h1 { h1 {
font-family: 'Segoe UI Light', 'Open Sans', Arial, Helvetica, sans-serif; font-family: 'Segoe UI Light', 'Open Sans', Arial, Helvetica, sans-serif;
font-weight: 200; font-weight: 200;
font-size: 28pt; font-size: 22pt;
} }
.toolsSidebar h1 { .toolsSidebar h1 {
@ -48,8 +48,18 @@ h1 {
h2 { h2 {
font-family: 'Segoe UI Semiight', 'Open Sans', Arial, Helvetica, sans-serif; font-family: 'Segoe UI Semiight', 'Open Sans', Arial, Helvetica, sans-serif;
font-weight: 400; font-weight: 400;
font-size: 20pt;
}
@media all and (min-width: 750px) {
h1 {
font-size: 28pt;
}
h2 {
font-size: 22pt; font-size: 22pt;
} }
}
pre, textarea.pre { pre, textarea.pre {
display: block; display: block;
@ -823,6 +833,7 @@ progress {
border: 0; border: 0;
background: none; background: none;
} }
.vjs-default-skin .vjs-play-control { .vjs-default-skin .vjs-play-control {
width: 2em; width: 2em;
} }

View file

@ -1,5 +1,13 @@
var LibraryBrowser = { var LibraryBrowser = {
getDetaultPageSize: function() {
if (window.location.toString().toLowerCase().indexOf('localhost') != -1) {
return 100;
}
return 25;
},
getPosterViewHtml: function (options) { getPosterViewHtml: function (options) {
var items = options.items; var items = options.items;
@ -27,6 +35,7 @@
height: 198, height: 198,
width: 352, width: 352,
tag: item.BackdropImageTags[0] tag: item.BackdropImageTags[0]
}) + "' />"; }) + "' />";
} else if (hasPrimaryImage) { } else if (hasPrimaryImage) {
@ -38,6 +47,7 @@
height: height, height: height,
width: width, width: width,
tag: item.ImageTags.Primary tag: item.ImageTags.Primary
}) + "' />"; }) + "' />";
} else if (item.BackdropImageTags && item.BackdropImageTags.length) { } else if (item.BackdropImageTags && item.BackdropImageTags.length) {
@ -46,6 +56,7 @@
height: 198, height: 198,
width: 352, width: 352,
tag: item.BackdropImageTags[0] tag: item.BackdropImageTags[0]
}) + "' />"; }) + "' />";
} }
else if (item.MediaType == "Audio" || item.Type == "MusicAlbum" || item.Type == "MusicArtist") { else if (item.MediaType == "Audio" || item.Type == "MusicAlbum" || item.Type == "MusicArtist") {

View file

@ -10,7 +10,7 @@
IncludeItemTypes: "Movie", IncludeItemTypes: "Movie",
Recursive: true, Recursive: true,
Fields: "PrimaryImageAspectRatio,UserData,DisplayMediaType", Fields: "PrimaryImageAspectRatio,UserData,DisplayMediaType",
Limit: 100, Limit: LibraryBrowser.getDetaultPageSize(),
StartIndex: 0 StartIndex: 0
}; };