mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-10 23:45:48 +01:00
🔧 Tweak values and UI changes
This commit is contained in:
@@ -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)}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user