mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 13:36:09 +05:00
use full-width right switches
This commit is contained in:
@@ -135,6 +135,7 @@ export default function PrimarySettingsComponent({
|
|||||||
<Switch checked={RemoveCacheOnDrop} onChange={inputForm} id='RemoveCacheOnDrop' color='secondary' />
|
<Switch checked={RemoveCacheOnDrop} onChange={inputForm} id='RemoveCacheOnDrop' color='secondary' />
|
||||||
}
|
}
|
||||||
label={t('SettingsDialog.RemoveCacheOnDrop')}
|
label={t('SettingsDialog.RemoveCacheOnDrop')}
|
||||||
|
labelPlacement='start'
|
||||||
/>
|
/>
|
||||||
<div>
|
<div>
|
||||||
<small>{t('SettingsDialog.RemoveCacheOnDropDesc')}</small>
|
<small>{t('SettingsDialog.RemoveCacheOnDropDesc')}</small>
|
||||||
|
|||||||
@@ -32,28 +32,28 @@ export default function SecondarySettingsComponent({ settings, inputForm }) {
|
|||||||
<FormControlLabel
|
<FormControlLabel
|
||||||
control={<Switch checked={EnableIPv6} onChange={inputForm} id='EnableIPv6' color='secondary' />}
|
control={<Switch checked={EnableIPv6} onChange={inputForm} id='EnableIPv6' color='secondary' />}
|
||||||
label='IPv6'
|
label='IPv6'
|
||||||
|
labelPlacement='start'
|
||||||
/>
|
/>
|
||||||
<br />
|
|
||||||
<FormControlLabel
|
<FormControlLabel
|
||||||
control={<Switch checked={!DisableTCP} onChange={inputForm} id='DisableTCP' color='secondary' />}
|
control={<Switch checked={!DisableTCP} onChange={inputForm} id='DisableTCP' color='secondary' />}
|
||||||
label='TCP (Transmission Control Protocol)'
|
label='TCP (Transmission Control Protocol)'
|
||||||
|
labelPlacement='start'
|
||||||
/>
|
/>
|
||||||
<br />
|
|
||||||
<FormControlLabel
|
<FormControlLabel
|
||||||
control={<Switch checked={!DisableUTP} onChange={inputForm} id='DisableUTP' color='secondary' />}
|
control={<Switch checked={!DisableUTP} onChange={inputForm} id='DisableUTP' color='secondary' />}
|
||||||
label='μTP (Micro Transport Protocol)'
|
label='μTP (Micro Transport Protocol)'
|
||||||
|
labelPlacement='start'
|
||||||
/>
|
/>
|
||||||
<br />
|
|
||||||
<FormControlLabel
|
<FormControlLabel
|
||||||
control={<Switch checked={!DisablePEX} onChange={inputForm} id='DisablePEX' color='secondary' />}
|
control={<Switch checked={!DisablePEX} onChange={inputForm} id='DisablePEX' color='secondary' />}
|
||||||
label='PEX (Peer Exchange)'
|
label='PEX (Peer Exchange)'
|
||||||
|
labelPlacement='start'
|
||||||
/>
|
/>
|
||||||
<br />
|
|
||||||
<FormControlLabel
|
<FormControlLabel
|
||||||
control={<Switch checked={ForceEncrypt} onChange={inputForm} id='ForceEncrypt' color='secondary' />}
|
control={<Switch checked={ForceEncrypt} onChange={inputForm} id='ForceEncrypt' color='secondary' />}
|
||||||
label={t('SettingsDialog.ForceEncrypt')}
|
label={t('SettingsDialog.ForceEncrypt')}
|
||||||
|
labelPlacement='start'
|
||||||
/>
|
/>
|
||||||
<br />
|
|
||||||
<TextField
|
<TextField
|
||||||
onChange={inputForm}
|
onChange={inputForm}
|
||||||
margin='normal'
|
margin='normal'
|
||||||
@@ -79,8 +79,8 @@ export default function SecondarySettingsComponent({ settings, inputForm }) {
|
|||||||
<FormControlLabel
|
<FormControlLabel
|
||||||
control={<Switch checked={!DisableDHT} onChange={inputForm} id='DisableDHT' color='secondary' />}
|
control={<Switch checked={!DisableDHT} onChange={inputForm} id='DisableDHT' color='secondary' />}
|
||||||
label={t('SettingsDialog.DHT')}
|
label={t('SettingsDialog.DHT')}
|
||||||
|
labelPlacement='start'
|
||||||
/>
|
/>
|
||||||
<br />
|
|
||||||
<TextField
|
<TextField
|
||||||
onChange={inputForm}
|
onChange={inputForm}
|
||||||
margin='normal'
|
margin='normal'
|
||||||
@@ -106,8 +106,8 @@ export default function SecondarySettingsComponent({ settings, inputForm }) {
|
|||||||
<FormControlLabel
|
<FormControlLabel
|
||||||
control={<Switch checked={!DisableUpload} onChange={inputForm} id='DisableUpload' color='secondary' />}
|
control={<Switch checked={!DisableUpload} onChange={inputForm} id='DisableUpload' color='secondary' />}
|
||||||
label={t('SettingsDialog.Upload')}
|
label={t('SettingsDialog.Upload')}
|
||||||
|
labelPlacement='start'
|
||||||
/>
|
/>
|
||||||
<br />
|
|
||||||
<TextField
|
<TextField
|
||||||
onChange={inputForm}
|
onChange={inputForm}
|
||||||
margin='normal'
|
margin='normal'
|
||||||
@@ -129,13 +129,12 @@ export default function SecondarySettingsComponent({ settings, inputForm }) {
|
|||||||
variant='outlined'
|
variant='outlined'
|
||||||
fullWidth
|
fullWidth
|
||||||
/>
|
/>
|
||||||
<br />
|
|
||||||
<FormControlLabel
|
<FormControlLabel
|
||||||
control={<Switch checked={!DisableUPNP} onChange={inputForm} id='DisableUPNP' color='secondary' />}
|
control={<Switch checked={!DisableUPNP} onChange={inputForm} id='DisableUPNP' color='secondary' />}
|
||||||
label='UPnP (Universal Plug and Play)'
|
label='UPnP (Universal Plug and Play)'
|
||||||
|
labelPlacement='start'
|
||||||
/>
|
/>
|
||||||
<br />
|
<br />
|
||||||
<br />
|
|
||||||
<InputLabel htmlFor='RetrackersMode'>{t('SettingsDialog.RetrackersMode')}</InputLabel>
|
<InputLabel htmlFor='RetrackersMode'>{t('SettingsDialog.RetrackersMode')}</InputLabel>
|
||||||
<Select
|
<Select
|
||||||
onChange={inputForm}
|
onChange={inputForm}
|
||||||
|
|||||||
@@ -58,11 +58,20 @@ export const useMaterialUITheme = () => {
|
|||||||
color: mainColors[theme].labels,
|
color: mainColors[theme].labels,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
// https://material-ui.com/ru/api/form-control-label/
|
||||||
|
MuiFormControlLabel: {
|
||||||
|
labelPlacementStart: {
|
||||||
|
display: 'flex',
|
||||||
|
justifyContent: 'space-between',
|
||||||
|
marginStart: 0,
|
||||||
|
marginTop: 6,
|
||||||
|
marginBottom: 2,
|
||||||
|
},
|
||||||
|
},
|
||||||
MuiInputLabel: {
|
MuiInputLabel: {
|
||||||
root: {
|
root: {
|
||||||
color: mainColors[theme].labels,
|
color: mainColors[theme].labels,
|
||||||
// fontSize: '22px',
|
marginBottom: 8,
|
||||||
marginBottom: '10px',
|
|
||||||
'&$focused': {
|
'&$focused': {
|
||||||
color: mainColors[theme].labels,
|
color: mainColors[theme].labels,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user