diff --git a/src/app/trades/page.tsx b/src/app/trades/page.tsx index 00da9ae..ea38d34 100644 --- a/src/app/trades/page.tsx +++ b/src/app/trades/page.tsx @@ -42,8 +42,9 @@ export default async function GlobalTradesPage({ searchParams }: PageProps) {
{trades.map((t) => ( -
-
+
+ {/* Primary row: type badge 路 hashtag 路 total value */} +
{t.type.replace('_', ' ')} -
-
- {t.user.isFund ? ( - 馃彟 - ) : null} - - {t.user.displayUsername ?? t.user.username} - - - - #{t.hashtag!.displayTag} - -
-

- {formatDistanceToNow(t.createdAt, { addSuffix: true })} -

+ + #{t.hashtag!.displayTag} + + {formatCurrency(t.total)} +
+ {/* Secondary row: user 路 time (left) shares @ price (right) */} +
+
+ {t.user.isFund && 馃彟} + + {t.user.displayUsername ?? t.user.username} + + + {formatDistanceToNow(t.createdAt, { addSuffix: true })}
+ {formatNumber(t.shares)} sh @ {formatCurrency(t.price)}
-
-

{formatNumber(t.shares)} sh @ {formatCurrency(t.price)}

-

{formatCurrency(t.total)}

- {(t.type === 'SELL_LONG' || t.type === 'SELL_SHORT') && ( -

{formatPnl(t.profit)}

- )} -
+ {/* PnL: sell trades only */} + {(t.type === 'SELL_LONG' || t.type === 'SELL_SHORT') && ( +
{formatPnl(t.profit)}
+ )}
))}