|
@ -31,7 +31,12 @@ import { |
|
|
genreColumnPicker, |
|
|
genreColumnPicker, |
|
|
genreColumnListAuto, |
|
|
genreColumnListAuto, |
|
|
} from '../ListViewColumns'; |
|
|
} from '../ListViewColumns'; |
|
|
import { setActive, setGridAlignment, setGridCardSize } from '../../../redux/configSlice'; |
|
|
import { |
|
|
|
|
|
setActive, |
|
|
|
|
|
setGridAlignment, |
|
|
|
|
|
setGridCardSize, |
|
|
|
|
|
setGridGapSize, |
|
|
|
|
|
} from '../../../redux/configSlice'; |
|
|
|
|
|
|
|
|
const LookAndFeelConfig = () => { |
|
|
const LookAndFeelConfig = () => { |
|
|
const dispatch = useAppDispatch(); |
|
|
const dispatch = useAppDispatch(); |
|
@ -271,7 +276,7 @@ const LookAndFeelConfig = () => { |
|
|
</StyledCheckbox> |
|
|
</StyledCheckbox> |
|
|
</ConfigPanel> |
|
|
</ConfigPanel> |
|
|
<ConfigPanel header="Grid-View" bordered> |
|
|
<ConfigPanel header="Grid-View" bordered> |
|
|
<ControlLabel>Card size</ControlLabel> |
|
|
<ControlLabel>Card size (px)</ControlLabel> |
|
|
<StyledInputNumber |
|
|
<StyledInputNumber |
|
|
defaultValue={config.lookAndFeel.gridView.cardSize} |
|
|
defaultValue={config.lookAndFeel.gridView.cardSize} |
|
|
step={1} |
|
|
step={1} |
|
@ -284,6 +289,19 @@ const LookAndFeelConfig = () => { |
|
|
}} |
|
|
}} |
|
|
/> |
|
|
/> |
|
|
<br /> |
|
|
<br /> |
|
|
|
|
|
<ControlLabel>Gap size (px)</ControlLabel> |
|
|
|
|
|
<StyledInputNumber |
|
|
|
|
|
defaultValue={config.lookAndFeel.gridView.gapSize} |
|
|
|
|
|
step={1} |
|
|
|
|
|
min={0} |
|
|
|
|
|
max={100} |
|
|
|
|
|
width={150} |
|
|
|
|
|
onChange={(e: any) => { |
|
|
|
|
|
settings.setSync('gridGapSize', Number(e)); |
|
|
|
|
|
dispatch(setGridGapSize({ size: Number(e) })); |
|
|
|
|
|
}} |
|
|
|
|
|
/> |
|
|
|
|
|
<br /> |
|
|
<ControlLabel>Grid alignment</ControlLabel> |
|
|
<ControlLabel>Grid alignment</ControlLabel> |
|
|
<RadioGroup |
|
|
<RadioGroup |
|
|
name="gridAlignemntRadioList" |
|
|
name="gridAlignemntRadioList" |
|
|