diff --git a/src/components/Settings/Customization/CustomizationSettings.tsx b/src/components/Settings/Customization/CustomizationSettings.tsx index b4ed1d3bb..bc95fc785 100644 --- a/src/components/Settings/Customization/CustomizationSettings.tsx +++ b/src/components/Settings/Customization/CustomizationSettings.tsx @@ -1,4 +1,5 @@ import { Button, ScrollArea, Stack } from '@mantine/core'; +import { useViewportSize } from '@mantine/hooks'; import { useTranslation } from 'next-i18next'; import { useConfigContext } from '../../../config/provider'; import { useConfigStore } from '../../../config/store'; @@ -16,20 +17,13 @@ import { ShadeSelector } from './Theme/ShadeSelector'; export default function CustomizationSettings() { const { config, name: configName } = useConfigContext(); const { t } = useTranslation('common'); + const { height, width } = useViewportSize(); const { updateConfig } = useConfigStore(); - const saveConfiguration = () => { - if (!configName || !config) { - return; - } - - updateConfig(configName, (_) => config, false, true); - }; - return ( - - + + @@ -47,11 +41,7 @@ export default function CustomizationSettings() { /> - - - - + + ); } diff --git a/src/components/Settings/Customization/Theme/OpacitySelector.tsx b/src/components/Settings/Customization/Theme/OpacitySelector.tsx index cc7888af6..f0eaf3bd1 100644 --- a/src/components/Settings/Customization/Theme/OpacitySelector.tsx +++ b/src/components/Settings/Customization/Theme/OpacitySelector.tsx @@ -32,7 +32,7 @@ export function OpacitySelector({ defaultValue }: OpacitySelectorProps) { }; return ( - + {t('label')}