Commit d41a5a48 authored by lynn's avatar lynn Committed by GitHub

fix: nav bar icon sizes (#5051)

* init

* fix
parent 2fe444f9
...@@ -123,7 +123,7 @@ export const MenuDropdown = () => { ...@@ -123,7 +123,7 @@ export const MenuDropdown = () => {
<> <>
<Box position="relative" ref={ref}> <Box position="relative" ref={ref}>
<NavIcon isActive={isOpen} onClick={toggleOpen}> <NavIcon isActive={isOpen} onClick={toggleOpen}>
<EllipsisIcon width={20} height={20} /> <EllipsisIcon viewBox="0 0 20 20" width={24} height={24} />
</NavIcon> </NavIcon>
{isOpen && ( {isOpen && (
......
...@@ -4,6 +4,7 @@ import { sprinkles, vars } from '../../nft/css/sprinkles.css' ...@@ -4,6 +4,7 @@ import { sprinkles, vars } from '../../nft/css/sprinkles.css'
export const navIcon = style([ export const navIcon = style([
sprinkles({ sprinkles({
alignItems: 'center',
position: 'relative', position: 'relative',
display: 'flex', display: 'flex',
flexDirection: 'column', flexDirection: 'column',
...@@ -11,7 +12,6 @@ export const navIcon = style([ ...@@ -11,7 +12,6 @@ export const navIcon = style([
justifyContent: 'center', justifyContent: 'center',
textAlign: 'center', textAlign: 'center',
cursor: 'pointer', cursor: 'pointer',
padding: '10',
borderRadius: '8', borderRadius: '8',
transition: '250', transition: '250',
}), }),
......
...@@ -18,6 +18,7 @@ export const NavIcon = ({ children, isActive, onClick }: NavIconProps) => { ...@@ -18,6 +18,7 @@ export const NavIcon = ({ children, isActive, onClick }: NavIconProps) => {
color={isActive ? 'textPrimary' : 'textSecondary'} color={isActive ? 'textPrimary' : 'textSecondary'}
onClick={onClick} onClick={onClick}
height="40" height="40"
width="40"
> >
{children} {children}
</Box> </Box>
......
...@@ -29,14 +29,14 @@ export const ShoppingBag = () => { ...@@ -29,14 +29,14 @@ export const ShoppingBag = () => {
<NavIcon onClick={toggleBag}> <NavIcon onClick={toggleBag}>
{isProfilePage ? ( {isProfilePage ? (
<> <>
<TagIcon width={20} height={20} /> <TagIcon viewBox="0 0 20 20" width={24} height={24} />
{sellQuantity ? ( {sellQuantity ? (
<Box className={styles.bagQuantity}>{sellQuantity > 99 ? <HundredsOverflowIcon /> : sellQuantity}</Box> <Box className={styles.bagQuantity}>{sellQuantity > 99 ? <HundredsOverflowIcon /> : sellQuantity}</Box>
) : null} ) : null}
</> </>
) : ( ) : (
<> <>
<BagIcon width={20} height={20} /> <BagIcon viewBox="0 0 20 20" width={24} height={24} />
{bagQuantity ? ( {bagQuantity ? (
<Box className={styles.bagQuantity}>{bagQuantity > 99 ? <HundredsOverflowIcon /> : bagQuantity}</Box> <Box className={styles.bagQuantity}>{bagQuantity > 99 ? <HundredsOverflowIcon /> : bagQuantity}</Box>
) : null} ) : null}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment