[enhancement]: support using native image aspect ratio

This commit is contained in:
Kendall Garner 2024-05-25 11:15:30 -07:00
parent 961d1838c0
commit 38ed083693
No known key found for this signature in database
GPG key ID: 18D2767419676C87
13 changed files with 41 additions and 9 deletions

View file

@ -90,6 +90,28 @@ export const ControlSettings = () => {
isHidden: false,
title: t('setting.playerAlbumArtResolution', { postProcess: 'sentenceCase' }),
},
{
control: (
<Switch
aria-label="Toggle using native aspect ratio"
defaultChecked={settings.nativeAspectRatio}
onChange={(e) =>
setSettings({
general: {
...settings,
nativeAspectRatio: e.currentTarget.checked,
},
})
}
/>
),
description: t('setting.imageAspectRatio', {
context: 'description',
postProcess: 'sentenceCase',
}),
isHidden: false,
title: t('setting.imageAspectRatio', { postProcess: 'sentenceCase' }),
},
{
control: (
<Switch