Skip to content

Commit

Permalink
Fix form styles
Browse files Browse the repository at this point in the history
  • Loading branch information
sablevsky committed Dec 13, 2024
1 parent e557b2e commit 7f8397f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
7 changes: 4 additions & 3 deletions src/pages/tokenLending/LeveragePage/LeveragePage.module.less
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@
.content {
border: var(--border-primary);
border-radius: 12px;
border-top-right-radius: 0;
border-bottom-right-radius: 0;

padding: 24px 0;

max-width: 392px;
Expand All @@ -43,6 +40,10 @@
max-width: unset;
}
}
.contentWithOrderBook {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}

.controlBtns {
display: flex;
Expand Down
3 changes: 2 additions & 1 deletion src/pages/tokenLending/LeveragePage/LeveragePage.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { FC, useState } from 'react'

import { useWallet } from '@solana/wallet-adapter-react'
import classNames from 'classnames'
import { Navigate, useParams } from 'react-router-dom'

import { Button } from '@banx/components/Buttons'
Expand Down Expand Up @@ -100,7 +101,7 @@ const LeverageContent: FC<LeverageContentProps> = ({ pair, collateralToken }) =>

return (
<div className={styles.container}>
<div className={styles.content}>
<div className={classNames(styles.content, { [styles.contentWithOrderBook]: showOrderBook })}>
<div className={styles.controlBtns}>
<Button variant="tertiary" onClick={() => setShowOrderBook((prev) => !prev)}>
{showOrderBook ? 'Hide offers' : 'Show offers'}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
border-radius: 12px;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
overflow: hidden;

padding-top: 12px;

Expand All @@ -20,7 +21,6 @@
justify-content: space-between;
padding: 0 0 120px;

overflow: hidden;
max-width: unset;
height: unset;
}
Expand Down

0 comments on commit 7f8397f

Please sign in to comment.