refactor(design): drop rounded classes, swap bg-white and gray borders for tokens
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -43,7 +43,7 @@ export function RiskFlagsPanel() {
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="bg-white rounded-xl shadow-sm p-5 mb-4">
|
||||
<div className="bg-surface shadow-sm p-5 mb-4">
|
||||
<div className="flex items-center justify-between mb-1">
|
||||
<h2 className="text-sm font-semibold text-gray-700 uppercase tracking-wide">
|
||||
Rising-Risk Zones (AI)
|
||||
@@ -51,7 +51,7 @@ export function RiskFlagsPanel() {
|
||||
<button
|
||||
onClick={analyze}
|
||||
disabled={loading}
|
||||
className="bg-purple-50 text-purple-700 border border-purple-300 rounded-lg px-3 py-1.5 text-xs font-semibold disabled:opacity-50 hover:bg-purple-100"
|
||||
className="bg-purple-50 text-purple-700 border border-purple-300 px-3 py-1.5 text-xs font-semibold disabled:opacity-50 hover:bg-purple-100"
|
||||
>
|
||||
{loading ? 'Analyzing…' : flags ? 'Re-analyze' : 'Analyze 90-Day Risk'}
|
||||
</button>
|
||||
@@ -71,7 +71,7 @@ export function RiskFlagsPanel() {
|
||||
<p className="text-sm text-gray-700 mb-3">{summary}</p>
|
||||
<div className="space-y-2">
|
||||
{flags.map(f => (
|
||||
<div key={`${f.site}-${f.zone}`} className={`border rounded-lg p-3 ${LEVEL_COLORS[f.risk_level]}`}>
|
||||
<div key={`${f.site}-${f.zone}`} className={`border p-3 ${LEVEL_COLORS[f.risk_level]}`}>
|
||||
<div className="flex items-center justify-between mb-1">
|
||||
<span className="text-sm font-semibold">{f.zone} · {f.site}</span>
|
||||
<span className="text-xs font-bold uppercase">{f.risk_level}</span>
|
||||
|
||||
Reference in New Issue
Block a user