mirror of
https://github.com/caty21/forex-dashboard.git
synced 2026-08-20 07:58:06 +00:00
auto: sync 2026-06-02 17:37
This commit is contained in:
+19
-10
@@ -96,20 +96,29 @@ function Row({ label, ind, unit = "", invertSurprise = false, warn = false, cons
|
|||||||
<div className="flex items-center justify-between gap-2">
|
<div className="flex items-center justify-between gap-2">
|
||||||
<div className="flex items-center gap-1.5 min-w-0">
|
<div className="flex items-center gap-1.5 min-w-0">
|
||||||
<TrendIcon trend={ind?.trend ?? null} />
|
<TrendIcon trend={ind?.trend ?? null} />
|
||||||
<span className="text-xs text-gray-500 truncate">
|
<span className="text-xs text-gray-500 truncate flex items-center gap-0.5">
|
||||||
{label}
|
{label}
|
||||||
{warn && <span className="text-amber-400 ml-0.5">⚠</span>}
|
{warn && <span className="text-amber-400 ml-0.5">⚠</span>}
|
||||||
{info && (
|
{info && (
|
||||||
<span
|
<span className="relative group/info inline-flex shrink-0 ml-0.5 cursor-help">
|
||||||
className="inline-flex items-center justify-center w-3 h-3 rounded-full border border-blue-300 text-blue-400 text-[7px] font-bold ml-0.5 cursor-help leading-none flex-shrink-0"
|
<span className="inline-flex items-center justify-center w-3 h-3 rounded-full border border-blue-300 text-blue-400 text-[7px] font-bold leading-none">i</span>
|
||||||
title={info}
|
<span className="pointer-events-none absolute bottom-full left-1/2 -translate-x-1/2 mb-1.5 w-48 px-2 py-1.5 rounded-md bg-gray-900 text-white text-[10px] leading-snug opacity-0 group-hover/info:opacity-100 transition-opacity duration-150 z-50 shadow-lg whitespace-normal text-left">
|
||||||
>i</span>
|
{info}
|
||||||
|
</span>
|
||||||
|
</span>
|
||||||
)}
|
)}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<span className={`text-xs font-semibold tabular-nums flex-shrink-0 ${valCls}`} title={tooltip ?? undefined}>
|
{tooltip ? (
|
||||||
{fmt(value)}
|
<span className="relative group/val cursor-default shrink-0">
|
||||||
</span>
|
<span className={`text-xs font-semibold tabular-nums ${valCls}`}>{fmt(value)}</span>
|
||||||
|
<span className="pointer-events-none absolute bottom-full right-0 mb-1.5 w-52 px-2 py-1.5 rounded-md bg-gray-900 text-white text-[10px] leading-snug opacity-0 group-hover/val:opacity-100 transition-opacity duration-150 z-50 shadow-lg whitespace-normal text-left">
|
||||||
|
{tooltip}
|
||||||
|
</span>
|
||||||
|
</span>
|
||||||
|
) : (
|
||||||
|
<span className={`text-xs font-semibold tabular-nums flex-shrink-0 ${valCls}`}>{fmt(value)}</span>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
{/* Ligne 2 : précédent + consensus à venir OU surprise post-publication */}
|
{/* Ligne 2 : précédent + consensus à venir OU surprise post-publication */}
|
||||||
<div className="flex items-center justify-between pl-5 mt-0.5">
|
<div className="flex items-center justify-between pl-5 mt-0.5">
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user