Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
interface
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LuckySwap
interface
Commits
3aa98d62
Unverified
Commit
3aa98d62
authored
Nov 29, 2022
by
aballerr
Committed by
GitHub
Nov 29, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: reverting to previous styles (#5439)
* Fixing overlay regression caused from a commit this morning
parent
362873d9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
67 additions
and
68 deletions
+67
-68
Bag.css.ts
src/nft/components/bag/Bag.css.ts
+24
-1
Bag.tsx
src/nft/components/bag/Bag.tsx
+43
-67
No files found.
src/nft/components/bag/Bag.css.ts
View file @
3aa98d62
import
{
style
}
from
'
@vanilla-extract/css
'
import
{
sprinkles
}
from
'
nft/css/sprinkles.css
'
import
{
breakpoints
,
sprinkles
}
from
'
nft/css/sprinkles.css
'
export
const
assetsContainer
=
style
([
sprinkles
({
...
...
@@ -12,3 +12,26 @@ export const assetsContainer = style([
scrollbarWidth
:
'
none
'
,
},
])
export
const
bagContainer
=
style
([
sprinkles
({
position
:
'
fixed
'
,
top
:
{
sm
:
'
0
'
,
md
:
'
72
'
},
width
:
'
full
'
,
height
:
'
full
'
,
right
:
'
0
'
,
background
:
'
backgroundSurface
'
,
borderLeftStyle
:
'
solid
'
,
borderColor
:
'
backgroundOutline
'
,
borderWidth
:
'
1px
'
,
color
:
'
textPrimary
'
,
}),
{
'
@media
'
:
{
[
`(min-width:
${
breakpoints
.
md
}
px)`
]:
{
width
:
'
360px
'
,
height
:
'
calc(100vh - 72px)
'
,
},
},
},
])
src/nft/components/bag/Bag.tsx
View file @
3aa98d62
...
...
@@ -30,7 +30,6 @@ import { combineBuyItemsWithTxRoute } from 'nft/utils/txRoute/combineItemsWithTx
import
{
useCallback
,
useEffect
,
useMemo
,
useRef
,
useState
}
from
'
react
'
import
{
useQuery
,
useQueryClient
}
from
'
react-query
'
import
styled
from
'
styled-components/macro
'
import
{
Z_INDEX
}
from
'
theme/zIndex
'
import
shallow
from
'
zustand/shallow
'
import
*
as
styles
from
'
./Bag.css
'
...
...
@@ -52,28 +51,6 @@ const DetailsPageBackground = styled.div`
height: 100%;
`
const
BagContainer
=
styled
.
div
`
position: fixed;
display: flex;
flex-direction: column;
top: 0px;
width: 100%;
height: 100%;
right: 0px;
background:
${({
theme
})
=>
theme
.
backgroundSurface
}
;
border-left-style: solid;
border-color:
${({
theme
})
=>
theme
.
backgroundOutline
}
;
border-width: 1px;
color:
${({
theme
})
=>
theme
.
textPrimary
}
;
z-index:
${
Z_INDEX
.
fixed
}
;
@media screen and (min-width:
${({
theme
})
=>
theme
.
breakpoint
.
md
}
px) {
width: 360px;
border-top-style: solid;
top: 72px;
}
`
const
ScrollingIndicator
=
({
top
,
show
}:
SeparatorProps
)
=>
(
<
Box
marginX=
"16"
...
...
@@ -304,9 +281,8 @@ const Bag = () => {
return
(
<
Portal
>
<
BagContainer
>
{
!
(
isProfilePage
&&
profilePageState
===
ProfilePageStateType
.
LISTING
)
?
(
<
>
<
Column
zIndex=
{
isMobile
||
isOpen
?
'
modalOverTooltip
'
:
'
3
'
}
className=
{
styles
.
bagContainer
}
>
<
BagHeader
numberOfAssets=
{
isProfilePage
?
sellAssets
.
length
:
itemsInBag
.
length
}
closeBag=
{
handleCloseBag
}
...
...
@@ -344,11 +320,11 @@ const Bag = () => {
Continue
</
Box
>
)
}
</
>
</
Column
>
)
:
(
<
ListingModal
/>
)
}
</
BagContainer
>
{
isDetailsPage
?
(
<
DetailsPageBackground
onClick=
{
toggleBag
}
/>
)
:
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment