1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

feat: (preferences) hide display settings when unsupported

This commit is contained in:
Grady Hallenbeck 2024-01-04 21:34:20 -08:00
parent 3dd26c7785
commit 5edcadd423
5 changed files with 163 additions and 99 deletions

View file

@ -17,7 +17,7 @@ interface LibraryPreferencesProps {
export function LibraryPreferences({ onChange, values }: Readonly<LibraryPreferencesProps>) {
return (
<Stack spacing={2}>
<Stack spacing={3}>
<Typography variant='h2'>{globalize.translate('HeaderLibraries')}</Typography>
<FormControl fullWidth>
@ -32,7 +32,7 @@ export function LibraryPreferences({ onChange, values }: Readonly<LibraryPrefere
required: true,
step: '1'
}}
defaultValue={values.libraryPageSize}
value={values.libraryPageSize}
label={globalize.translate('LabelLibraryPageSize')}
name='libraryPageSize'
onChange={onChange}