Fix misc. styles

This commit is contained in:
jeffvli 2023-01-30 20:16:43 -08:00
parent 8cc5ec6797
commit 320f583660
2 changed files with 15 additions and 18 deletions

View file

@ -1,5 +1,5 @@
import type { ChangeEvent } from 'react'; import type { ChangeEvent } from 'react';
import { Stack } from '@mantine/core'; import { Divider, Stack } from '@mantine/core';
import { MultiSelect } from '/@/renderer/components/select'; import { MultiSelect } from '/@/renderer/components/select';
import { Slider } from '/@/renderer/components/slider'; import { Slider } from '/@/renderer/components/slider';
import { Switch } from '/@/renderer/components/switch'; import { Switch } from '/@/renderer/components/switch';
@ -170,7 +170,7 @@ export const TableConfigDropdown = ({ type }: TableConfigDropdownProps) => {
return ( return (
<Stack <Stack
p="1rem" p="1rem"
spacing="xl" spacing="md"
> >
<Stack spacing="xs"> <Stack spacing="xs">
<Text>Table Columns</Text> <Text>Table Columns</Text>
@ -193,20 +193,17 @@ export const TableConfigDropdown = ({ type }: TableConfigDropdownProps) => {
onChangeEnd={handleUpdateRowHeight} onChangeEnd={handleUpdateRowHeight}
/> />
</Stack> </Stack>
<Stack spacing="xs"> <Divider my="0.5rem" />
<Text>Auto Fit Columns</Text> <Switch
<Switch defaultChecked={tableConfig[type]?.autoFit}
defaultChecked={tableConfig[type]?.autoFit} label="Auto-fit columns"
onChange={handleUpdateAutoFit} onChange={handleUpdateAutoFit}
/> />
</Stack> <Switch
<Stack spacing="xs"> defaultChecked={tableConfig[type]?.followCurrentSong}
<Text>Follow Current Song</Text> label="Follow current song"
<Switch onChange={handleUpdateFollow}
defaultChecked={tableConfig[type]?.followCurrentSong} />
onChange={handleUpdateFollow}
/>
</Stack>
</Stack> </Stack>
); );
}; };

View file

@ -10,8 +10,8 @@ export const DrawerPlayQueue = () => {
return ( return (
<Stack <Stack
pb="1rem" h="100%"
sx={{ height: '100%' }} spacing={0}
> >
<PlayQueue <PlayQueue
ref={queueRef} ref={queueRef}