From 01e343addf46079737dc9806edb9e3da019ce69d Mon Sep 17 00:00:00 2001 From: Stefan Niclas Heun Date: Wed, 25 Sep 2024 18:40:54 +0200 Subject: [PATCH] fixing some alignment --- .../NavigationLayout/NavigationLayout.tsx | 33 ++++++++++--------- .../components/AppearanceSelector.tsx | 11 +++++-- 2 files changed, 25 insertions(+), 19 deletions(-) diff --git a/client/src/utilities/NavigationLayout/NavigationLayout.tsx b/client/src/utilities/NavigationLayout/NavigationLayout.tsx index ad9e0469..7228f46b 100644 --- a/client/src/utilities/NavigationLayout/NavigationLayout.tsx +++ b/client/src/utilities/NavigationLayout/NavigationLayout.tsx @@ -8,22 +8,19 @@ import { Menu, MenuTarget, Select, - Switch, + Stack, Text, rem, - useMantineColorScheme, } from '@mantine/core' import { IconAppsFilled, IconDeviceDesktop, IconLogout, IconMail, - IconMoonStars, IconNews, IconSchool, IconSelector, IconStairs, - IconSun, IconUsers, } from '@tabler/icons-react' import type Keycloak from 'keycloak-js' @@ -239,9 +236,9 @@ export const NavigationLayout = ({ keycloak, children }: NavigationLayoutProps): size='xl' mt='md' style={{ - padding: '6px 6px', + padding: '8px 8px', borderRadius: '8px', - height: '4rem', + height: '4.5rem', width: '100%', }} /> @@ -252,16 +249,20 @@ export const NavigationLayout = ({ keycloak, children }: NavigationLayoutProps): - } - onClick={() => { - void keycloak.logout({ redirectUri: window.location.origin + '/management' }) - }} - > - Logout - + + { + void keycloak.logout({ redirectUri: window.location.origin + '/management' }) + }} + > +
+ + Logout +
+
+
diff --git a/client/src/utilities/NavigationLayout/components/AppearanceSelector.tsx b/client/src/utilities/NavigationLayout/components/AppearanceSelector.tsx index e314e102..cdb285e7 100644 --- a/client/src/utilities/NavigationLayout/components/AppearanceSelector.tsx +++ b/client/src/utilities/NavigationLayout/components/AppearanceSelector.tsx @@ -1,4 +1,4 @@ -import { MantineColorScheme, Radio, Stack, useMantineColorScheme } from '@mantine/core' +import { MantineColorScheme, Radio, Stack, Text, useMantineColorScheme } from '@mantine/core' import { IconDeviceDesktop, IconMoon, IconSun } from '@tabler/icons-react' import * as styles from './AppearanceSelector.module.scss' @@ -9,11 +9,16 @@ interface AppearanceRadioCardProps { } const AppearanceRadioCard = ({ value, icon, label }: AppearanceRadioCardProps) => ( - +
{icon} - {label} + {label}