|
|
@@ -68,13 +68,14 @@ export function FunnelPage() {
|
|
|
}}
|
|
|
onPickRolling={(p) => setPeriod(p)}
|
|
|
/>
|
|
|
- {/* 滚动周期显示日期范围;单日不显示。查询 pending 时不渲染,
|
|
|
- 避免用旧 snapshot_dt 配新 period 算出错误范围。 */}
|
|
|
- {!mutation.isPending && mutation.data?.snapshot_dt && period !== 'day' && (
|
|
|
- <span className="text-xs text-muted-foreground">
|
|
|
- {funnelRangeText(period, mutation.data.snapshot_dt)}
|
|
|
- </span>
|
|
|
- )}
|
|
|
+ {/* 日期范围槽:始终占位(固定行高),避免显示/隐藏时挤动下方内容。
|
|
|
+ 仅滚动周期且查询完成时填文案;单日 / pending 期间留空但不塌缩
|
|
|
+ (pending 不填,避免用旧 snapshot_dt 配新 period 算出错误范围)。 */}
|
|
|
+ <span className="h-4 text-xs leading-4 text-muted-foreground">
|
|
|
+ {!mutation.isPending && mutation.data?.snapshot_dt && period !== 'day'
|
|
|
+ ? funnelRangeText(period, mutation.data.snapshot_dt)
|
|
|
+ : ''}
|
|
|
+ </span>
|
|
|
</div>
|
|
|
</div>
|
|
|
|