This commit is contained in:
viown
2025-06-11 11:05:58 +03:00
parent 6a82bda2f8
commit 1e96289f73
3 changed files with 3 additions and 32 deletions

View File

@@ -64,7 +64,8 @@ const ServerInfoWidget = ({ systemInfo, onScanLibrariesClick, onRestartClick, on
onClick={onShutdownClick}
color='error'
sx={{
fontWeight: 'bold' }}
fontWeight: 'bold'
}}
>
{globalize.translate('ButtonShutdown')}
</Button>

View File

@@ -25,16 +25,6 @@ const getNowPlayingImageUrl = (item: BaseItemDto) => {
});
}
/*
if (item?.BackdropImageTag) {
return apiClient.getScaledImageUrl(item.BackdropItemId, {
maxWidth: Math.round(dom.getScreenWidth() * 0.20),
type: 'Backdrop',
tag: item.BackdropImageTag
});
}
*/
const imageTags = item?.ImageTags || {};
if (item && item.Id && imageTags.Thumb) {
@@ -53,16 +43,6 @@ const getNowPlayingImageUrl = (item: BaseItemDto) => {
});
}
/*
if (item?.ThumbImageTag) {
return apiClient.getScaledImageUrl(item.ThumbItemId, {
maxWidth: Math.round(dom.getScreenWidth() * 0.20),
type: 'Thumb',
tag: item.ThumbImageTag
});
}
*/
if (item && item.Id && imageTags.Primary) {
return apiClient.getScaledImageUrl(item.Id, {
maxWidth: Math.round(dom.getScreenWidth() * 0.20),
@@ -71,16 +51,6 @@ const getNowPlayingImageUrl = (item: BaseItemDto) => {
});
}
/*
if (item?.PrimaryImageTag) {
return apiClient.getScaledImageUrl(item.PrimaryImageItemId, {
maxWidth: Math.round(dom.getScreenWidth() * 0.20),
type: 'Primary',
tag: item.PrimaryImageTag
});
}
*/
if (item?.AlbumPrimaryImageTag && item.AlbumId) {
return apiClient.getScaledImageUrl(item.AlbumId, {
maxWidth: Math.round(dom.getScreenWidth() * 0.20),

View File

@@ -1,4 +1,4 @@
import React, { useCallback, useEffect, useMemo, useState } from 'react';
import React, { useCallback, useMemo, useState } from 'react';
import Page from 'components/Page';
import globalize from 'lib/globalize';
import Box from '@mui/material/Box';