From 932150c72f1441b892cfbf209536d2aa23e77f6e Mon Sep 17 00:00:00 2001 From: Manuel Date: Wed, 9 Aug 2023 22:06:56 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20Add=20discord=20and=20GH=20to=20?= =?UTF-8?q?experimental=20header?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/layout/header/Header.tsx | 35 ++++++++++++++++++------- 1 file changed, 26 insertions(+), 9 deletions(-) diff --git a/src/components/layout/header/Header.tsx b/src/components/layout/header/Header.tsx index 958afc8d7..5370ba868 100644 --- a/src/components/layout/header/Header.tsx +++ b/src/components/layout/header/Header.tsx @@ -1,6 +1,8 @@ import { + Anchor, Box, Center, + Divider, Flex, Group, Header, @@ -32,7 +34,7 @@ export const MainHeader = ({ }: MainHeaderProps) => { const { breakpoints } = useMantineTheme(); const isSmallerThanMd = useMediaQuery(`(max-width: ${breakpoints.sm})`); - const experimentalHeaderNoteHeight = isSmallerThanMd ? 50 : 30; + const experimentalHeaderNoteHeight = isSmallerThanMd ? 60 : 30; const headerBaseHeight = isSmallerThanMd ? 60 + 46 : 60; const headerHeight = showExperimental ? headerBaseHeight + experimentalHeaderNoteHeight @@ -69,7 +71,7 @@ export const MainHeader = ({ }; type ExperimentalHeaderNoteProps = { - height?: 30 | 50; + height?: 30 | 60; visible?: boolean; }; const ExperimentalHeaderNote = ({ visible = false, height = 30 }: ExperimentalHeaderNoteProps) => { @@ -77,13 +79,28 @@ const ExperimentalHeaderNote = ({ visible = false, height = 30 }: ExperimentalHe if (!visible) return null; return ( - - - - - {t('experimentalNote.label')} - - + + + + + + {t('experimentalNote.label')} + + + + + Create issue + + + + Discord + + + ); };