add jellyfin, improvements

This commit is contained in:
Kendall Garner 2023-06-02 23:54:34 -07:00 committed by Jeff
parent 85d2576bdc
commit 58f38b2655
11 changed files with 168 additions and 17 deletions

View file

@ -1,4 +1,4 @@
import { Switch } from '@mantine/core';
import { NumberInput, Switch } from '@mantine/core';
import {
SettingOption,
SettingsSection,
@ -82,6 +82,28 @@ export const LyricSettings = () => {
isHidden: !isElectron(),
title: 'Providers to fetch music',
},
{
control: (
<NumberInput
defaultValue={settings.delayMs}
step={10}
width={100}
onBlur={(e) => {
const value = Number(e.currentTarget.value);
setSettings({
lyrics: {
...settings,
delayMs: value,
},
});
}}
/>
),
description:
'Lyric offset (in milliseconds). Positive values mean that lyrics are shown later, and negative mean that lyrics are shown earlier',
isHidden: !isElectron(),
title: 'Lyric offset',
},
];
return <SettingsSection options={lyricOptions} />;