Update security.tsx

This commit is contained in:
MacRimi
2026-02-14 17:01:14 +01:00
parent 1ee5863da7
commit bafaaf9c47

View File

@@ -2452,7 +2452,7 @@ ${(report.sections && report.sections.length > 0) ? `
</div> </div>
</div> </div>
{/* Scope breakdown */} {/* Scope breakdown */}
<div className="flex items-center gap-4 text-xs text-muted-foreground"> <div className="flex flex-wrap items-center gap-x-4 gap-y-1 text-xs text-muted-foreground">
<span className="flex items-center gap-1.5"> <span className="flex items-center gap-1.5">
<Globe className="h-3 w-3 text-blue-400" /> Cluster: {clusterCount} <Globe className="h-3 w-3 text-blue-400" /> Cluster: {clusterCount}
</span> </span>
@@ -2698,12 +2698,19 @@ ${(report.sections && report.sections.length > 0) ? `
}`}> }`}>
{rule.action || "?"} {rule.action || "?"}
</span> </span>
{/* Mobile: combined info */} {/* Mobile: combined info on two lines */}
<div className="sm:hidden flex items-center gap-1.5 min-w-0"> <div className="sm:hidden min-w-0">
<span className="text-xs text-blue-400 font-mono">{rule.p || "*"}</span> <div className="flex items-center gap-1.5">
<span className="text-xs text-muted-foreground">/</span> <span className="text-xs text-blue-400 font-mono flex-shrink-0">{rule.p || "*"}</span>
<span className="text-xs text-foreground font-mono font-medium truncate">{rule.dport || "*"}</span> <span className="text-xs text-muted-foreground flex-shrink-0">:</span>
{comment && <span className="text-[10px] text-muted-foreground truncate ml-1">- {comment}</span>} <span className="text-xs text-foreground font-mono font-medium">{rule.dport || "*"}</span>
<span className={`text-[10px] px-1 py-0 rounded flex-shrink-0 ${
rule.source_file === "cluster" ? "bg-blue-500/10 text-blue-400" : "bg-purple-500/10 text-purple-400"
}`}>{rule.source_file}</span>
</div>
{comment && (
<p className="text-[10px] text-muted-foreground truncate mt-0.5">{comment}</p>
)}
</div> </div>
{/* Desktop: direction label */} {/* Desktop: direction label */}
<span className="hidden sm:block text-xs text-muted-foreground font-mono">{direction}</span> <span className="hidden sm:block text-xs text-muted-foreground font-mono">{direction}</span>