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
58721fb1
Unverified
Commit
58721fb1
authored
Jun 24, 2020
by
Moody Salem
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improvement(remove liquidity): fix width of buttons on small screens
parent
678cd1a0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
9 deletions
+6
-9
index.tsx
src/components/Modal/index.tsx
+1
-8
styleds.tsx
src/pages/Pool/styleds.tsx
+5
-1
No files found.
src/components/Modal/index.tsx
View file @
58721fb1
...
...
@@ -112,17 +112,10 @@ export default function Modal({
const
[{
y
},
set
]
=
useSpring
(()
=>
({
y
:
0
,
config
:
{
mass
:
1
,
tension
:
210
,
friction
:
20
}
}))
const
bind
=
useGesture
({
onDrag
:
state
=>
{
let
velocity
=
state
.
velocity
if
(
velocity
<
1
)
{
velocity
=
1
}
if
(
velocity
>
8
)
{
velocity
=
8
}
set
({
y
:
state
.
down
?
state
.
movement
[
1
]
:
0
})
if
(
velocity
>
3
&&
state
.
direction
[
1
]
>
0
)
{
if
(
state
.
velocity
>
3
&&
state
.
direction
[
1
]
>
0
)
{
onDismiss
()
}
}
...
...
src/pages/Pool/styleds.tsx
View file @
58721fb1
...
...
@@ -17,9 +17,13 @@ export const MaxButton = styled.button<{ width: string }>`
border: 1px solid
${({
theme
})
=>
theme
.
primary5
}
;
border-radius: 0.5rem;
font-size: 1rem;
${({
theme
})
=>
theme
.
mediaWidth
.
upToSmall
`
padding: 0.25rem 0.5rem;
`
}
;
font-weight: 500;
cursor: pointer;
margin-right: 0.5rem;
margin: 0.25rem;
overflow: hidden;
color:
${({
theme
})
=>
theme
.
primary1
}
;
:hover {
border: 1px solid
${({
theme
})
=>
theme
.
primary1
}
;
...
...
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