Commit ff6f43d7 authored by Jordan Frankfurt's avatar Jordan Frankfurt Committed by GitHub

fix(bag-footer): remove double border top and excess margin (#5171)

parent f1443671
...@@ -279,9 +279,11 @@ const Bag = () => { ...@@ -279,9 +279,11 @@ const Bag = () => {
[itemsInBag, totalUsdPrice] [itemsInBag, totalUsdPrice]
) )
if (!bagExpanded || !isNFTPage) {
return null
}
return ( return (
<>
{bagExpanded && isNFTPage ? (
<Portal> <Portal>
<Column zIndex={isMobile || isOpen ? 'modal' : '3'} className={styles.bagContainer}> <Column zIndex={isMobile || isOpen ? 'modal' : '3'} className={styles.bagContainer}>
{!(isProfilePage && profilePageState === ProfilePageStateType.LISTING) ? ( {!(isProfilePage && profilePageState === ProfilePageStateType.LISTING) ? (
...@@ -297,7 +299,6 @@ const Bag = () => { ...@@ -297,7 +299,6 @@ const Bag = () => {
<Column ref={scrollRef} className={styles.assetsContainer} onScroll={scrollHandler} gap="12"> <Column ref={scrollRef} className={styles.assetsContainer} onScroll={scrollHandler} gap="12">
{isProfilePage ? <ProfileBagContent /> : <BagContent />} {isProfilePage ? <ProfileBagContent /> : <BagContent />}
</Column> </Column>
<ScrollingIndicator show={userCanScroll && scrollProgress < 100} />
{hasAssetsToShow && !isProfilePage && ( {hasAssetsToShow && !isProfilePage && (
<BagFooter <BagFooter
totalEthPrice={totalEthPrice} totalEthPrice={totalEthPrice}
...@@ -334,8 +335,6 @@ const Bag = () => { ...@@ -334,8 +335,6 @@ const Bag = () => {
isOpen && <Overlay onClick={() => (!bagIsLocked ? setModalIsOpen(false) : undefined)} /> isOpen && <Overlay onClick={() => (!bagIsLocked ? setModalIsOpen(false) : undefined)} />
)} )}
</Portal> </Portal>
) : null}
</>
) )
} }
......
...@@ -3,7 +3,6 @@ import { body } from 'nft/css/common.css' ...@@ -3,7 +3,6 @@ import { body } from 'nft/css/common.css'
import { sprinkles } from 'nft/css/sprinkles.css' import { sprinkles } from 'nft/css/sprinkles.css'
export const footerContainer = sprinkles({ export const footerContainer = sprinkles({
marginTop: '20',
paddingX: '16', paddingX: '16',
}) })
......
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