fix: use middle dot instead of pipe as raw column separator in preview

Prevents confusion between the display separator and actual CSV delimiters.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Le-King-Fu 2026-02-08 04:00:25 +00:00
parent 49e0bd2c94
commit ce584a15ab

View file

@ -90,7 +90,14 @@ export default function FilePreviewTable({
: "—"} : "—"}
</td> </td>
<td className="px-3 py-2 text-xs text-[var(--muted-foreground)] max-w-xs truncate"> <td className="px-3 py-2 text-xs text-[var(--muted-foreground)] max-w-xs truncate">
{row.raw.join(" | ")} <span className="inline-flex gap-0">
{row.raw.map((cell, i) => (
<span key={i}>
{i > 0 && <span className="text-[var(--border)] mx-0.5">{'·'}</span>}
{cell}
</span>
))}
</span>
</td> </td>
</tr> </tr>
))} ))}