Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tom2drum committed Aug 27, 2024
1 parent 0dbfb34 commit d68e08e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion theme/global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import getDefaultTransitionProps from './utils/getDefaultTransitionProps';

const global = (props: StyleFunctionProps) => ({
body: {
bg: mode('gray.100', 'gray.700')(props),
bg: mode('gray.100', '#3A4957')(props),
...getDefaultTransitionProps(),
'-webkit-tap-highlight-color': 'transparent',
'font-variant-ligatures': 'no-contextual',
Expand Down
2 changes: 1 addition & 1 deletion ui/shared/layout/components/Container.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const Container = ({ children, className }: Props) => {
minWidth={{ base: '100vw', lg: 'fit-content' }}
maxW={ config.UI.navigation.layout === 'horizontal' ? undefined : `${ CONTENT_MAX_WIDTH }px` }
m="0 auto"
bgColor={ config.UI.navigation.layout === 'horizontal' ? bgColor : undefined }
bgColor={ bgColor }
>
{ children }
</Box>
Expand Down
5 changes: 1 addition & 4 deletions ui/shared/layout/components/MainArea.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Flex, chakra, useColorModeValue } from '@chakra-ui/react';
import { Flex, chakra } from '@chakra-ui/react';
import React from 'react';

import config from 'configs/app';
Expand All @@ -14,8 +14,6 @@ const TOP_BAR_HEIGHT = 36;
const HORIZONTAL_NAV_BAR_HEIGHT = config.UI.navigation.layout === 'horizontal' ? 49 : 0;

const MainArea = ({ children, className }: Props) => {
const bgColor = useColorModeValue('white', 'black');

return (
<Flex
className={ className }
Expand All @@ -27,7 +25,6 @@ const MainArea = ({ children, className }: Props) => {
lg: `calc(100vh - ${ TOP_BAR_HEIGHT + HORIZONTAL_NAV_BAR_HEIGHT }px)`,
}}
alignItems="stretch"
bgColor={ bgColor }
>
{ children }
</Flex>
Expand Down
2 changes: 0 additions & 2 deletions ui/snippets/footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ const Footer = () => {
const apiVersionUrl = getApiVersionUrl(backendVersionData?.backend_version);
const issueUrl = useIssueUrl(backendVersionData?.backend_version);
const logoColor = useColorModeValue('blue.600', 'white');
const bgColor = useColorModeValue('white', 'black');

const BLOCKSCOUT_LINKS = [
{
Expand Down Expand Up @@ -160,7 +159,6 @@ const Footer = () => {
as: 'footer',
borderTopWidth: '1px',
borderTopColor: 'solid',
bgColor,
};

const contentProps: GridProps = {
Expand Down

0 comments on commit d68e08e

Please sign in to comment.