align trade history table styles

This commit is contained in:
saml33 2022-12-20 11:42:13 +11:00
parent 955d8bc659
commit 2d75701050
2 changed files with 12 additions and 12 deletions

View File

@ -65,10 +65,8 @@ export const TableDateDisplay = ({
showSeconds?: boolean showSeconds?: boolean
}) => ( }) => (
<> <>
<p className="mb-0 text-xs text-th-fgd-2"> <p className="text-th-fgd-2">{dayjs(date).format('DD MMM YYYY')}</p>
{dayjs(date).format('DD MMM YYYY')} <p className="text-xs text-th-fgd-4">
</p>
<p className="mb-0 text-xs">
{dayjs(date).format(showSeconds ? 'h:mm:ssa' : 'h:mma')} {dayjs(date).format(showSeconds ? 'h:mm:ssa' : 'h:mma')}
</p> </p>
</> </>

View File

@ -161,9 +161,9 @@ const TradeHistory = () => {
</Td> </Td>
<Td className="text-right"> <Td className="text-right">
<span className="font-mono">{trade.feeCost}</span> <span className="font-mono">{trade.feeCost}</span>
<span className="text-xs text-th-fgd-4">{`${ <p className="font-body text-xs text-th-fgd-4">{`${
trade.liquidity ? ` (${trade.liquidity})` : '' trade.liquidity ? trade.liquidity : ''
}`}</span> }`}</p>
</Td> </Td>
{selectedMarket instanceof PerpMarket ? ( {selectedMarket instanceof PerpMarket ? (
<Td className="whitespace-nowrap text-right font-mono"> <Td className="whitespace-nowrap text-right font-mono">
@ -187,11 +187,13 @@ const TradeHistory = () => {
</div> </div>
) : ( ) : (
<div className="flex flex-col items-center justify-center px-6 pb-8 pt-4"> <div className="flex flex-col items-center justify-center px-6 pb-8 pt-4">
<div className="mb-8 w-full">
<InlineNotification <InlineNotification
type="info" type="info"
desc="Only your recent trades are displayed. Full trade history will be available shortly." desc="Only your recent trades are displayed. Full trade history will be available shortly."
/> />
<NoSymbolIcon className="mb-2 mt-8 h-6 w-6 text-th-fgd-4" /> </div>
<NoSymbolIcon className="mb-2 h-6 w-6 text-th-fgd-4" />
<p>No trade history for {selectedMarket?.name}</p> <p>No trade history for {selectedMarket?.name}</p>
</div> </div>
) )