1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

fix debugger component positioning

This commit is contained in:
checktheroads
2020-01-21 17:39:34 -07:00
parent 446cf624b8
commit dee6f190b1
2 changed files with 6 additions and 4 deletions

View File

@@ -24,7 +24,7 @@ const Debugger = () => {
const { isOpen: themeOpen, onOpen: onThemeOpen, onClose: themeClose } = useDisclosure();
const config = useConfig();
const theme = useTheme();
const bg = { light: "white", dark: "white" };
const bg = { light: "white", dark: "black" };
const color = { light: "black", dark: "white" };
const { colorMode } = useColorMode();
const { mediaSize } = useMedia();
@@ -38,11 +38,13 @@ const Debugger = () => {
mx={-4}
px={4}
isInline
position="fixed"
bottom="10%"
// position="fixed"
position="relative"
// bottom="10%"
left={0}
right={0}
justifyContent="center"
zIndex={1000}
>
<Tag variantColor="gray">{colorMode.toUpperCase()}</Tag>
<Tag variantColor="teal">{prettyMediaSize[mediaSize]}</Tag>

View File

@@ -83,7 +83,6 @@ const Layout = () => {
)}
</AnimatePresence>
</Flex>
{config.general.debug && <Debugger />}
<Footer
general={config.general}
content={config.content}
@@ -92,6 +91,7 @@ const Layout = () => {
credit={config.branding.credit}
extLink={config.branding.external_link}
/>
{config.general.debug && <Debugger />}
</Flex>
</>
);