mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update games page to honor aspect ratio
This commit is contained in:
parent
fdd009f29c
commit
d7cb795c5f
2 changed files with 2 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
(function ($, document) {
|
(function ($, document) {
|
||||||
|
|
||||||
var view = "Backdrop";
|
var view = "Poster";
|
||||||
|
|
||||||
// The base query options
|
// The base query options
|
||||||
var query = {
|
var query = {
|
||||||
|
@ -36,7 +36,6 @@
|
||||||
else if (view == "Poster") {
|
else if (view == "Poster") {
|
||||||
html += LibraryBrowser.getPosterDetailViewHtml({
|
html += LibraryBrowser.getPosterDetailViewHtml({
|
||||||
items: result.Items,
|
items: result.Items,
|
||||||
useAverageAspectRatio: true,
|
|
||||||
context: "games",
|
context: "games",
|
||||||
shape: "poster"
|
shape: "poster"
|
||||||
});
|
});
|
||||||
|
|
|
@ -64,7 +64,7 @@
|
||||||
|
|
||||||
var currentTimeout = searchHintTimeout;
|
var currentTimeout = searchHintTimeout;
|
||||||
|
|
||||||
ApiClient.getSearchHints(ApiClient.getUrl({ userId: Dashboard.getCurrentUserId(), searchTerm: searchTerm, limit: 10 })).done(function (result) {
|
ApiClient.getSearchHints({ userId: Dashboard.getCurrentUserId(), searchTerm: searchTerm, limit: 10 }).done(function (result) {
|
||||||
|
|
||||||
if (currentTimeout != searchHintTimeout) {
|
if (currentTimeout != searchHintTimeout) {
|
||||||
return;
|
return;
|
||||||
|
@ -74,7 +74,6 @@
|
||||||
hideFlyout(page);
|
hideFlyout(page);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
renderSearchHintResult(page, result.SearchHints);
|
renderSearchHintResult(page, result.SearchHints);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue