Commit 58721fb1 authored by Moody Salem's avatar Moody Salem

improvement(remove liquidity): fix width of buttons on small screens

parent 678cd1a0
...@@ -112,17 +112,10 @@ export default function Modal({ ...@@ -112,17 +112,10 @@ export default function Modal({
const [{ y }, set] = useSpring(() => ({ y: 0, config: { mass: 1, tension: 210, friction: 20 } })) const [{ y }, set] = useSpring(() => ({ y: 0, config: { mass: 1, tension: 210, friction: 20 } }))
const bind = useGesture({ const bind = useGesture({
onDrag: state => { onDrag: state => {
let velocity = state.velocity
if (velocity < 1) {
velocity = 1
}
if (velocity > 8) {
velocity = 8
}
set({ set({
y: state.down ? state.movement[1] : 0 y: state.down ? state.movement[1] : 0
}) })
if (velocity > 3 && state.direction[1] > 0) { if (state.velocity > 3 && state.direction[1] > 0) {
onDismiss() onDismiss()
} }
} }
......
...@@ -17,9 +17,13 @@ export const MaxButton = styled.button<{ width: string }>` ...@@ -17,9 +17,13 @@ export const MaxButton = styled.button<{ width: string }>`
border: 1px solid ${({ theme }) => theme.primary5}; border: 1px solid ${({ theme }) => theme.primary5};
border-radius: 0.5rem; border-radius: 0.5rem;
font-size: 1rem; font-size: 1rem;
${({ theme }) => theme.mediaWidth.upToSmall`
padding: 0.25rem 0.5rem;
`};
font-weight: 500; font-weight: 500;
cursor: pointer; cursor: pointer;
margin-right: 0.5rem; margin: 0.25rem;
overflow: hidden;
color: ${({ theme }) => theme.primary1}; color: ${({ theme }) => theme.primary1};
:hover { :hover {
border: 1px solid ${({ theme }) => theme.primary1}; border: 1px solid ${({ theme }) => theme.primary1};
......
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