Skip to content

Commit

Permalink
Merge pull request #736 from osmosis-labs/jonator/trade-ux-fixes
Browse files Browse the repository at this point in the history
Trade UX tweaks
  • Loading branch information
jonator authored Aug 17, 2022
2 parents f065a57 + 2dc5719 commit 2e76d47
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions packages/web/components/trade-clipboard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ export const TradeClipboard: FunctionComponent<{
<div className="relative flex flex-col gap-3">
<div
className={classNames(
"bg-surface rounded-xl md:rounded-xl px-4 md:px-3 py-[22px] md:py-2.5 transition-all duration-300",
"bg-surface rounded-xl md:rounded-xl px-4 md:px-3 py-[22px] md:py-2.5 transition-all",
!switchOutBack ? "ease-outBack" : "ease-inBack",
{
"opacity-30": isAnimatingSwitch,
Expand All @@ -330,7 +330,7 @@ export const TradeClipboard: FunctionComponent<{
>
<div
className={classNames(
"flex items-center place-content-between transition-opacity duration-300",
"flex items-center place-content-between transition-opacity",
{
"opacity-0": isAnimatingSwitch,
}
Expand Down Expand Up @@ -447,7 +447,7 @@ export const TradeClipboard: FunctionComponent<{
/>
<div
className={classNames(
"caption text-white-disabled transition-opacity duration-300",
"caption text-white-disabled transition-opacity",
inAmountValue ? "opacity-100" : "opacity-0"
)}
>{`≈ ${inAmountValue || "0"}`}</div>
Expand Down Expand Up @@ -519,7 +519,7 @@ export const TradeClipboard: FunctionComponent<{

<div
className={classNames(
"bg-surface rounded-xl md:rounded-xl px-4 md:px-3 py-[22px] md:py-2.5 transition-all duration-300",
"bg-surface rounded-xl md:rounded-xl px-4 md:px-3 py-[22px] md:py-2.5 transition-all",
!switchOutBack ? "ease-outBack" : "ease-inBack",
{
"opacity-30": isAnimatingSwitch,
Expand All @@ -534,7 +534,7 @@ export const TradeClipboard: FunctionComponent<{
}
>
<div
className="flex items-center place-content-between transition-transform duration-300"
className="flex items-center place-content-between transition-transform"
style={
isAnimatingSwitch
? {
Expand Down Expand Up @@ -610,7 +610,7 @@ export const TradeClipboard: FunctionComponent<{
}`}</h5>
<div
className={classNames(
"caption text-white-disabled transition-opacity duration-300",
"caption text-white-disabled transition-opacity",
outAmountValue ? "opacity-100" : "opacity-0"
)}
>
Expand All @@ -622,7 +622,7 @@ export const TradeClipboard: FunctionComponent<{

<div
className={classNames(
"relative rounded-lg bg-card px-4 md:px-3 transition-all ease-inOutBack duration-500 overflow-hidden",
"relative rounded-lg bg-card px-4 md:px-3 transition-all ease-inOutBack duration-300 overflow-hidden",
showEstimateDetails ? "h-56 py-6" : "h-11 py-[10px]"
)}
>
Expand Down Expand Up @@ -660,7 +660,7 @@ export const TradeClipboard: FunctionComponent<{
<div className="flex items-center gap-2">
<Image
className={classNames(
"transition-opacity duration-300",
"transition-opacity",
showPriceImpactWarning ? "opacity-100" : "opacity-0"
)}
alt="alert circle"
Expand All @@ -669,7 +669,7 @@ export const TradeClipboard: FunctionComponent<{
width={24}
/>
<Image
className={`group-hover:opacity-100 transition-all duration-300 ${
className={`group-hover:opacity-100 transition-all ${
showEstimateDetails ? "rotate-180" : "rotate-0"
} ${isEstimateDetailRelevant ? "opacity-40" : "opacity-0"}`}
alt="show estimates"
Expand Down

2 comments on commit 2e76d47

@vercel
Copy link

@vercel vercel bot commented on 2e76d47 Aug 17, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 2e76d47 Aug 17, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.