Skip to content

Commit 879b444

Browse files
committed
fix details styling
1 parent 40fa006 commit 879b444

File tree

1 file changed

+14
-3
lines changed
  • src/components/swap/components/trade-details

1 file changed

+14
-3
lines changed

src/components/swap/components/trade-details/index.tsx

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ import {
33
DisclosureButton,
44
DisclosurePanel,
55
} from '@headlessui/react'
6-
import { ExclamationTriangleIcon } from '@heroicons/react/20/solid'
6+
import {
7+
ChevronDownIcon,
8+
ExclamationTriangleIcon,
9+
} from '@heroicons/react/20/solid'
710
import Image from 'next/image'
811
import { useState } from 'react'
912

@@ -52,11 +55,11 @@ export const TradeDetails = (props: TradeDetailsProps) => {
5255
: prices.outputTokenPriceUsd
5356

5457
return (
55-
<div className='mb-1.5 flex'>
58+
<div className='mb-1.5 flex flex-col'>
5659
<Disclosure>
5760
{({ open }) => (
5861
<>
59-
<DisclosureButton className='py-2'>
62+
<DisclosureButton className='border-ic-gray-200 w-full border px-5 py-4'>
6063
<div className='flex flex-1 items-center justify-between pr-1'>
6164
<div className='flex'>
6265
{showWarning && (
@@ -91,6 +94,14 @@ export const TradeDetails = (props: TradeDetailsProps) => {
9194
props.selectedQuoteType === QuoteType.flashmint && (
9295
<FlashMintTag />
9396
)}
97+
{!isLoading && (
98+
<ChevronDownIcon
99+
className={cn(
100+
'ml-2 size-5',
101+
open && 'rotate-180 transform transition',
102+
)}
103+
/>
104+
)}
94105
{isLoading && <StyledSkeleton width={70} />}
95106
</div>
96107
</div>

0 commit comments

Comments
 (0)