ui: add buy/sell direction legend to LiveTradesCard

This commit is contained in:
root 2026-02-27 11:41:57 +00:00
parent bb187167bb
commit 3ff83845fb

View File

@ -70,8 +70,14 @@ export default function LiveTradesCard({ symbol }: { symbol: "BTC" | "ETH" }) {
return ( return (
<div className="rounded-xl border border-slate-200 bg-white shadow-sm overflow-hidden"> <div className="rounded-xl border border-slate-200 bg-white shadow-sm overflow-hidden">
<div className="px-4 py-3 border-b border-slate-100 flex items-center justify-between"> <div className="px-4 py-3 border-b border-slate-100 flex items-center justify-between">
<div>
<h2 className="font-semibold text-slate-800 text-sm"> · {symbol}/USDT</h2> <h2 className="font-semibold text-slate-800 text-sm"> · {symbol}/USDT</h2>
<div className="flex items-center gap-1.5"> <p className="text-xs text-slate-400 mt-0.5">
<span className="text-emerald-600 font-medium"> 绿</span> = &nbsp;&nbsp;
<span className="text-red-500 font-medium"> </span> =
</p>
</div>
<div className="flex items-center gap-1.5 shrink-0">
<span className="w-1.5 h-1.5 rounded-full bg-emerald-500 animate-pulse" /> <span className="w-1.5 h-1.5 rounded-full bg-emerald-500 animate-pulse" />
<span className="text-xs text-emerald-600"></span> <span className="text-xs text-emerald-600"></span>
</div> </div>