mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
don't use random backdrop in item header
This commit is contained in:
parent
23a22d6b24
commit
5df5f6cdb2
3 changed files with 14 additions and 13 deletions
|
@ -36,7 +36,7 @@ import Dashboard from '../../utils/dashboard';
|
|||
import ServerConnections from '../../components/ServerConnections';
|
||||
import confirm from '../../components/confirm/confirm';
|
||||
import { download } from '../../scripts/fileDownloader';
|
||||
import { getRandomItemBackdropImageUrl } from '../../utils/url';
|
||||
import { getItemBackdropImageUrl } from '../../utils/url';
|
||||
|
||||
function autoFocus(container) {
|
||||
import('../../components/autoFocuser').then(({ default: autoFocuser }) => {
|
||||
|
@ -505,7 +505,7 @@ function renderDetailPageBackdrop(page, item, apiClient) {
|
|||
let hasbackdrop = false;
|
||||
const itemBackdropElement = page.querySelector('#itemBackdrop');
|
||||
|
||||
const imgUrl = getRandomItemBackdropImageUrl(apiClient, item, { maxWitdh: dom.getScreenWidth() });
|
||||
const imgUrl = getItemBackdropImageUrl(apiClient, item, false, { maxWitdh: dom.getScreenWidth() });
|
||||
|
||||
if (imgUrl) {
|
||||
imageLoader.lazyImage(itemBackdropElement, imgUrl);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue