Skip to content

topbar width 100vw #2846

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions ui/snippets/topBar/TopBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import React from 'react';

import config from 'configs/app';
import { useColorModeValue } from 'toolkit/chakra/color-mode';
import { CONTENT_MAX_WIDTH } from 'ui/shared/layout/utils';

import DeFiDropdown from './DeFiDropdown';
import NetworkMenu from './NetworkMenu';
Expand All @@ -14,11 +13,10 @@ const TopBar = () => {
const bgColor = useColorModeValue('gray.50', 'whiteAlpha.100');

return (
<Box bgColor={ bgColor }>
<Box bgColor={ bgColor } position="sticky" left={ 0 } width="100vw">
<Flex
py={ 2 }
px={{ base: 3, lg: 6 }}
maxW={ `${ CONTENT_MAX_WIDTH }px` }
m="0 auto"
justifyContent="space-between"
alignItems="center"
Expand Down
Loading