diff --git a/src/components/Settings/Common/CommonSettings.tsx b/src/components/Settings/Common/CommonSettings.tsx index 28fd7500c..438644e30 100644 --- a/src/components/Settings/Common/CommonSettings.tsx +++ b/src/components/Settings/Common/CommonSettings.tsx @@ -1,4 +1,5 @@ import { ScrollArea, Space, Stack, Text } from '@mantine/core'; +import { useElementSize, useViewportSize } from '@mantine/hooks'; import { useConfigContext } from '../../../config/provider'; import ConfigChanger from '../../Config/ConfigChanger'; import ConfigActions from './Config/ConfigActions'; @@ -7,6 +8,7 @@ import { SearchEngineSelector } from './SearchEngine/SearchEngineSelector'; export default function CommonSettings() { const { config } = useConfigContext(); + const { height, width } = useViewportSize(); if (!config) { return ( @@ -15,16 +17,15 @@ export default function CommonSettings() { ); } - return ( - - + + - - + + ); }