Skip to content

Commit

Permalink
fix tooltip width
Browse files Browse the repository at this point in the history
  • Loading branch information
SorinC6 committed Apr 16, 2024
1 parent 1db60e3 commit deaa4fd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
Expand Up @@ -22,7 +22,6 @@ export const EditSlippage = ({ setOpenedDialog, slippageValue }: EditSlippagePro
Slippage tolerance
</Typography>
<InfoTooltip
width={450}
content={
<Typography color="inherit">
Slippage tolerance is set as a percentage of the total swap value. Your transactions
Expand Down
Expand Up @@ -44,14 +44,13 @@ export default function SwapPoolFullInfo({
const liqFeeQuantity = Quantities.format(cost.liquidityFee.quantity, ptDecimals ?? 0);

return (
<Box sx={{ display: 'flex', flexFlow: 'column', gap: '16px', mt: '8px', mb: '8px' }}>
<Box sx={{ display: 'flex', flexFlow: 'column', gap: '8px', mt: '8px', mb: '8px' }}>
{showMinAda && (
<Box sx={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between' }}>
<Box color="grayscale.500" display="flex" alignItems="center" gap="8px">
Min ADA
{withInfo && (
<InfoTooltip
width={245}
content={
<Typography color="inherit">
A small ADA deposit that will be returned when your order is processed or
Expand All @@ -71,7 +70,6 @@ export default function SwapPoolFullInfo({
Fees
{withInfo && (
<InfoTooltip
width={245}
content={
<React.Fragment>
<Typography color="inherit">Fees included:</Typography>
Expand All @@ -89,7 +87,6 @@ export default function SwapPoolFullInfo({
Minimum assets received
{withInfo && (
<InfoTooltip
width={245}
content={
<Typography color="inherit">
The minimum amount you are guaranteed to receive in case of price slippage
Expand All @@ -107,7 +104,6 @@ export default function SwapPoolFullInfo({
Liquidity provider fee
{withInfo && (
<InfoTooltip
width={360}
content={
<Typography color="inherit">
A fixed 0.3% operational fee paid to liquidity providers as a reward for supplying
Expand Down

0 comments on commit deaa4fd

Please sign in to comment.