🔧 Tweak values and UI changes

This commit is contained in:
ajnart
2022-06-20 10:24:22 +02:00
parent 4981823c37
commit 14a40d9f66

View File

@@ -5,15 +5,6 @@ import { useConfig } from '../../tools/state';
export function AppCardWidthSelector() { export function AppCardWidthSelector() {
const { config, setConfig } = useConfig(); const { config, setConfig } = useConfig();
const MARKS = [
{ value: 0.8 },
{ value: 1 },
{ value: 1.2 },
{ value: 1.4 },
{ value: 1.6 },
{ value: 2 },
];
const setappCardWidth = (appCardWidth: number) => { const setappCardWidth = (appCardWidth: number) => {
setConfig({ setConfig({
...config, ...config,
@@ -33,7 +24,6 @@ export function AppCardWidthSelector() {
step={0.2} step={0.2}
min={0.8} min={0.8}
max={2} max={2}
marks={MARKS}
styles={{ markLabel: { fontSize: 'xx-small' } }} styles={{ markLabel: { fontSize: 'xx-small' } }}
onChange={(value) => setappCardWidth(value)} onChange={(value) => setappCardWidth(value)}
/> />