From 9af2f20bfa7ac8b245f69d62354f39336554314e Mon Sep 17 00:00:00 2001 From: Florian Fritz Date: Wed, 24 Aug 2022 00:38:10 +0200 Subject: [PATCH 1/3] :sparkles: Add option for custom CSS to Customization Settings --- src/components/Settings/AdvancedSettings.tsx | 10 +++++++++- src/components/layout/Layout.tsx | 3 +++ src/tools/types.ts | 1 + 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/components/Settings/AdvancedSettings.tsx b/src/components/Settings/AdvancedSettings.tsx index 552e5b483..e873c7263 100644 --- a/src/components/Settings/AdvancedSettings.tsx +++ b/src/components/Settings/AdvancedSettings.tsx @@ -1,4 +1,4 @@ -import { TextInput, Button, Stack } from '@mantine/core'; +import { TextInput, Button, Stack, Textarea } from '@mantine/core'; import { useForm } from '@mantine/form'; import { useTranslation } from 'next-i18next'; import { useConfig } from '../../tools/state'; @@ -25,6 +25,7 @@ export default function TitleChanger() { logo?: string; favicon?: string; background?: string; + customCSS?: string; }) => { setConfig({ ...config, @@ -34,6 +35,7 @@ export default function TitleChanger() { logo: values.logo, favicon: values.favicon, background: values.background, + customCSS: values.customCSS, }, }); }; @@ -62,6 +64,12 @@ export default function TitleChanger() { placeholder={t('background.placeholder')} {...form.getInputProps('background')} /> +