fix: remove duplication of original situation
This commit is contained in:
@@ -268,17 +268,19 @@ function InvestigationHistory({ turns }) {
|
|||||||
|
|
||||||
// ── Original situation (always-visible reference card) ────────
|
// ── Original situation (always-visible reference card) ────────
|
||||||
function OriginalSituation({ scenario, centralStatement }) {
|
function OriginalSituation({ scenario, centralStatement }) {
|
||||||
if (!scenario) return null;
|
const text = scenario || centralStatement;
|
||||||
|
|
||||||
|
if (!text) return null;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="rounded-lg border border-gray-200 bg-gray-50/70 px-5 py-4">
|
<div className="rounded-lg border border-gray-200 bg-gray-50/70 px-5 py-4">
|
||||||
<h2 className="mb-2 text-xs font-bold uppercase tracking-widest text-gray-400">
|
<h2 className="mb-2 text-xs font-bold uppercase tracking-widest text-gray-400">
|
||||||
Original situation
|
Original situation
|
||||||
</h2>
|
</h2>
|
||||||
{centralStatement && (
|
|
||||||
<p className="mb-1 text-xs text-gray-400">{centralStatement}</p>
|
<p className="whitespace-pre-wrap text-sm leading-relaxed text-gray-700">
|
||||||
)}
|
{text}
|
||||||
<p className="whitespace-pre-wrap text-sm leading-relaxed text-gray-700">{scenario}</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user