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:
@@ -24,7 +24,7 @@ const Debugger = () => {
|
|||||||
const { isOpen: themeOpen, onOpen: onThemeOpen, onClose: themeClose } = useDisclosure();
|
const { isOpen: themeOpen, onOpen: onThemeOpen, onClose: themeClose } = useDisclosure();
|
||||||
const config = useConfig();
|
const config = useConfig();
|
||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
const bg = { light: "white", dark: "white" };
|
const bg = { light: "white", dark: "black" };
|
||||||
const color = { light: "black", dark: "white" };
|
const color = { light: "black", dark: "white" };
|
||||||
const { colorMode } = useColorMode();
|
const { colorMode } = useColorMode();
|
||||||
const { mediaSize } = useMedia();
|
const { mediaSize } = useMedia();
|
||||||
@@ -38,11 +38,13 @@ const Debugger = () => {
|
|||||||
mx={-4}
|
mx={-4}
|
||||||
px={4}
|
px={4}
|
||||||
isInline
|
isInline
|
||||||
position="fixed"
|
// position="fixed"
|
||||||
bottom="10%"
|
position="relative"
|
||||||
|
// bottom="10%"
|
||||||
left={0}
|
left={0}
|
||||||
right={0}
|
right={0}
|
||||||
justifyContent="center"
|
justifyContent="center"
|
||||||
|
zIndex={1000}
|
||||||
>
|
>
|
||||||
<Tag variantColor="gray">{colorMode.toUpperCase()}</Tag>
|
<Tag variantColor="gray">{colorMode.toUpperCase()}</Tag>
|
||||||
<Tag variantColor="teal">{prettyMediaSize[mediaSize]}</Tag>
|
<Tag variantColor="teal">{prettyMediaSize[mediaSize]}</Tag>
|
||||||
|
@@ -83,7 +83,6 @@ const Layout = () => {
|
|||||||
)}
|
)}
|
||||||
</AnimatePresence>
|
</AnimatePresence>
|
||||||
</Flex>
|
</Flex>
|
||||||
{config.general.debug && <Debugger />}
|
|
||||||
<Footer
|
<Footer
|
||||||
general={config.general}
|
general={config.general}
|
||||||
content={config.content}
|
content={config.content}
|
||||||
@@ -92,6 +91,7 @@ const Layout = () => {
|
|||||||
credit={config.branding.credit}
|
credit={config.branding.credit}
|
||||||
extLink={config.branding.external_link}
|
extLink={config.branding.external_link}
|
||||||
/>
|
/>
|
||||||
|
{config.general.debug && <Debugger />}
|
||||||
</Flex>
|
</Flex>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user