mirror of
https://github.com/usestrix/strix.git
synced 2026-08-19 10:05:12 +02:00
ui: keep the amendment author line readable without its body
A shared trace strips threat-model amendment text, so the author has to render on its own rather than as a label on an empty string.
This commit is contained in:
+6
-2
@@ -82,10 +82,14 @@ export default function ThreatModelRenderer({ toolName, args, result }: ToolRend
|
||||
</span>
|
||||
<span className="text-[#555] text-xs"> — later statements win</span>
|
||||
<div className="mt-1 space-y-1">
|
||||
{/* On a public share link the amendment body is stripped, so the
|
||||
author line has to stand on its own. */}
|
||||
{amendments.map((amendment, i) => (
|
||||
<div key={i} className="text-xs leading-snug">
|
||||
<span className="text-[#666]">{amendment.agent_name ?? "unknown agent"}: </span>
|
||||
<span className="text-[#999]">{amendment.content ?? ""}</span>
|
||||
<span className="text-[#666]">{amendment.agent_name ?? "unknown agent"}</span>
|
||||
{amendment.content && (
|
||||
<span className="text-[#999]">: {amendment.content}</span>
|
||||
)}
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -6,7 +6,7 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta name="color-scheme" content="dark" />
|
||||
<title>Strix Results</title>
|
||||
<script type="module" crossorigin src="./assets/index-CMo1eUt4.js"></script>
|
||||
<script type="module" crossorigin src="./assets/index-Bi_X6kI3.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="./assets/index-g-_6CcwH.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
Reference in New Issue
Block a user