From cab823bcdf2c4f3d42068c73321c389ea6ecaae5 Mon Sep 17 00:00:00 2001 From: Olivier Gagnon Date: Thu, 16 Sep 2021 21:59:12 -0400 Subject: [PATCH] take less space in sidebar --- src/Sidebar/ui/SidebarRoot.tsx | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/src/Sidebar/ui/SidebarRoot.tsx b/src/Sidebar/ui/SidebarRoot.tsx index c53494826..b3a27cd94 100644 --- a/src/Sidebar/ui/SidebarRoot.tsx +++ b/src/Sidebar/ui/SidebarRoot.tsx @@ -101,6 +101,10 @@ const useStyles = makeStyles((theme: Theme) => active: { borderLeft: "3px solid " + colors.primary, }, + listitem: { + paddingTop: theme.spacing(0.1), + paddingBottom: theme.spacing(0.1), + }, }), ); @@ -357,7 +361,7 @@ export function SidebarRoot(props: IProps): React.ReactElement { return ( - + {!open ? : } @@ -365,7 +369,7 @@ export function SidebarRoot(props: IProps): React.ReactElement { - setHackingOpen((old) => !old)}> + setHackingOpen((old) => !old)}> @@ -375,6 +379,7 @@ export function SidebarRoot(props: IProps): React.ReactElement { - setCharacterOpen((old) => !old)}> + setCharacterOpen((old) => !old)}> @@ -479,6 +486,7 @@ export function SidebarRoot(props: IProps): React.ReactElement { {canOpenFactions && ( {canOpenSleeves && ( - setWorldOpen((old) => !old)}> + setWorldOpen((old) => !old)}> @@ -597,6 +607,7 @@ export function SidebarRoot(props: IProps): React.ReactElement { {canJob && ( - setHelpOpen((old) => !old)}> + setHelpOpen((old) => !old)}> @@ -740,6 +755,7 @@ export function SidebarRoot(props: IProps): React.ReactElement { {process.env.NODE_ENV === "development" && (