From cd3c062a24665b0f5fdd962179a6fdc37c7b2a97 Mon Sep 17 00:00:00 2001 From: Bjorn Lammers Date: Tue, 21 Jun 2022 19:14:18 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20Changes=20AppShelf=20category=20?= =?UTF-8?q?styling?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/AppShelf/AppShelf.tsx | 30 ++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/src/components/AppShelf/AppShelf.tsx b/src/components/AppShelf/AppShelf.tsx index 05c0d1ada..083de4626 100644 --- a/src/components/AppShelf/AppShelf.tsx +++ b/src/components/AppShelf/AppShelf.tsx @@ -20,15 +20,30 @@ import DownloadComponent from '../modules/downloads/DownloadsModule'; const useStyles = createStyles((theme, _params) => ({ item: { - borderBottom: 0, overflow: 'hidden', - border: '1px solid transparent', - borderRadius: theme.radius.lg, + borderLeft: '3px solid transparent', + borderRight: '3px solid transparent', + borderBottom: '3px solid transparent', + borderRadius: '20px', + borderColor: theme.colorScheme === 'dark' ? theme.colors.dark[5] : theme.colors.gray[1], marginTop: theme.spacing.md, }, - itemOpened: { - borderColor: theme.colorScheme === 'dark' ? theme.colors.dark[5] : theme.colors.gray[3], + control: { + backgroundColor: theme.colorScheme === 'dark' ? theme.colors.dark[5] : theme.colors.gray[1], + borderRadius: theme.spacing.md, + + '&:hover': { + backgroundColor: theme.colorScheme === 'dark' ? theme.colors.dark[5] : theme.colors.gray[1], + }, + }, + + content: { + margin: theme.spacing.md, + }, + + label: { + overflow: 'visible', }, })); @@ -147,11 +162,6 @@ const AppShelf = (props: any) => { order={2} iconPosition="right" multiple - styles={{ - item: { - borderRadius: '20px', - }, - }} initialState={toggledCategories} onChange={(idx) => settoggledCategories(idx)} >