Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,22 @@ export function WebVitalsMetricCell({
const formatted =
metric === "cls" ? value.toFixed(3) : formatPerformanceTime(value);
const { colorClass, isGood, isPoor } = getMetricStyles(value, metric);
const showIcon = isGood || isPoor;

return (
<div className="flex items-center gap-1">
<div className="flex items-center justify-end gap-1">
{isGood ? (
<CheckCircle
aria-hidden="true"
className="size-3.5 shrink-0 text-success"
/>
) : null}
{isPoor ? (
<Warning
aria-hidden="true"
className="size-3.5 shrink-0 text-destructive"
/>
) : null}
<span className={colorClass}>{formatted}</span>
{showIcon && isGood && (
<CheckCircle className="size-3.5 text-green-600" />
)}
{showIcon && isPoor && <Warning className="size-3.5 text-red-600" />}
</div>
);
}
2 changes: 1 addition & 1 deletion apps/dashboard/components/table/table-content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const DEFAULT_CELL_STYLE = {

const COMPACT_COLUMN_WIDTHS: Record<string, number> = {
clicks: 88,
cls: 76,
cls: 78,
current_time: 108,
customers: 100,
fcp: 88,
Expand Down
Loading