Skip to content

Commit

Permalink
move tooltips to the right
Browse files Browse the repository at this point in the history
  • Loading branch information
sehyunc committed Oct 9, 2024
1 parent 5794904 commit 34fd3e7
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
2 changes: 1 addition & 1 deletion components/dialogs/transfer/transfer-status-display.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export function TransferStatusDisplay({
const Content = () => {
if (isTask) {
return (
<div className="text-xs text-muted">
<div className="space-y-0.5 text-xs text-muted">
{TASK_STATES.map((state) => (
<div
key={state}
Expand Down
10 changes: 8 additions & 2 deletions components/dialogs/transfer/usdc-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,10 @@ export function USDCForm({
</div>
</Button>
</ResponsiveTooltipTrigger>
<ResponsiveTooltipContent>
<ResponsiveTooltipContent
side="right"
sideOffset={10}
>
{`${formattedUsdcBalance} ${baseToken?.ticker}`}
</ResponsiveTooltipContent>
</ResponsiveTooltip>
Expand All @@ -666,7 +669,10 @@ export function USDCForm({
</div>
</Button>
</ResponsiveTooltipTrigger>
<ResponsiveTooltipContent>
<ResponsiveTooltipContent
side="right"
sideOffset={10}
>
{`${formattedUsdceBalance} USDC.e`}
</ResponsiveTooltipContent>
</ResponsiveTooltip>
Expand Down
10 changes: 8 additions & 2 deletions components/dialogs/transfer/weth-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,10 @@ export function WETHForm({
</div>
</Button>
</ResponsiveTooltipTrigger>
<ResponsiveTooltipContent>
<ResponsiveTooltipContent
side="right"
sideOffset={10}
>
{`${balance} ${baseToken.ticker}`}
</ResponsiveTooltipContent>
</ResponsiveTooltip>
Expand Down Expand Up @@ -738,7 +741,10 @@ export function WETHForm({
</div>
</Button>
</ResponsiveTooltipTrigger>
<ResponsiveTooltipContent>
<ResponsiveTooltipContent
side="right"
sideOffset={10}
>
{ethBalance?.value &&
minEthToKeepUnwrapped > ethBalance.value
? "Not enough ETH to wrap"
Expand Down

0 comments on commit 34fd3e7

Please sign in to comment.