diff --git a/src/components/AppShelf/AppShelf.tsx b/src/components/AppShelf/AppShelf.tsx index ede6a307f..8a6d20807 100644 --- a/src/components/AppShelf/AppShelf.tsx +++ b/src/components/AppShelf/AppShelf.tsx @@ -1,5 +1,5 @@ import React, { useState } from 'react'; -import { Accordion, createStyles, Grid, Group } from '@mantine/core'; +import { Accordion, createStyles, Grid, Group, Paper, useMantineColorScheme } from '@mantine/core'; import { closestCenter, DndContext, @@ -42,6 +42,7 @@ const AppShelf = (props: any) => { }); const [activeId, setActiveId] = useState(null); const { config, setConfig } = useConfig(); + const { colorScheme } = useMantineColorScheme(); const sensors = useSensors( useSensor(TouchSensor, { @@ -164,7 +165,16 @@ const AppShelf = (props: any) => { ) : null} - + + + diff --git a/src/components/layout/Aside.tsx b/src/components/layout/Aside.tsx index 2a12a98e1..8ed088c4b 100644 --- a/src/components/layout/Aside.tsx +++ b/src/components/layout/Aside.tsx @@ -34,14 +34,16 @@ export default function Aside(props: any) { base: 'auto', }} > - {matches && ( - - - - - - - )} + <> + {matches && ( + + + + + + + )} + ); } diff --git a/src/components/modules/downloads/DownloadsModule.tsx b/src/components/modules/downloads/DownloadsModule.tsx index 527a6e835..3a4a4a65b 100644 --- a/src/components/modules/downloads/DownloadsModule.tsx +++ b/src/components/modules/downloads/DownloadsModule.tsx @@ -55,7 +55,7 @@ export default function DownloadComponent() { setTorrents(response.data); setIsLoading(false); }); - }, 1000); + }, 5000); }, [config.services]); if (downloadServices.length === 0) { diff --git a/src/components/modules/moduleWrapper.tsx b/src/components/modules/moduleWrapper.tsx index 2d974e53b..8d965941d 100644 --- a/src/components/modules/moduleWrapper.tsx +++ b/src/components/modules/moduleWrapper.tsx @@ -1,4 +1,4 @@ -import { Button, Card, Group, Menu, Switch, TextInput } from '@mantine/core'; +import { Button, Card, Group, Menu, Switch, TextInput, useMantineColorScheme } from '@mantine/core'; import { useConfig } from '../../tools/state'; import { IModule } from './modules'; @@ -91,6 +91,7 @@ function getItems(module: IModule) { export function ModuleWrapper(props: any) { const { module }: { module: IModule } = props; + const { colorScheme } = useMantineColorScheme(); const { config, setConfig } = useConfig(); const enabledModules = config.modules ?? {}; // Remove 'Module' from enabled modules titles @@ -99,8 +100,21 @@ export function ModuleWrapper(props: any) { if (!isShown) { return null; } + return ( -