Álvaro Valenzuela Valdes commited on
Commit ·
759a61a
1
Parent(s): beebad7
ux: increase hit areas and font sizes for buttons and dropdowns to improve accessibility
Browse files
frontend/components/AgentAnalysis.tsx
CHANGED
|
@@ -201,10 +201,10 @@ export default function AgentAnalysis({ tender, companyProfile, analysis, onAnal
|
|
| 201 |
<div className="flex justify-start">
|
| 202 |
<button
|
| 203 |
onClick={onBackToSearch}
|
| 204 |
-
className="flex items-center gap-
|
| 205 |
>
|
| 206 |
-
<span className="text-
|
| 207 |
-
<span className="text-
|
| 208 |
</button>
|
| 209 |
</div>
|
| 210 |
|
|
@@ -380,10 +380,10 @@ export default function AgentAnalysis({ tender, companyProfile, analysis, onAnal
|
|
| 380 |
setAgentModels(prev => ({ ...prev, [agent.id]: model }));
|
| 381 |
setActiveSettings(null);
|
| 382 |
}}
|
| 383 |
-
className={`w-full text-left px-
|
| 384 |
>
|
| 385 |
<span>{model}</span>
|
| 386 |
-
{agentModels[agent.id as keyof typeof agentModels] === model && <span>
|
| 387 |
</button>
|
| 388 |
))}
|
| 389 |
</div>
|
|
|
|
| 201 |
<div className="flex justify-start">
|
| 202 |
<button
|
| 203 |
onClick={onBackToSearch}
|
| 204 |
+
className="flex items-center gap-4 px-4 py-2 rounded-xl bg-white/5 border border-white/10 text-slate-400 hover:text-white hover:bg-white/10 transition-all group active:scale-95"
|
| 205 |
>
|
| 206 |
+
<span className="text-2xl transition-transform group-hover:-translate-x-1">←</span>
|
| 207 |
+
<span className="text-xs font-black uppercase tracking-widest">Back to Opportunities</span>
|
| 208 |
</button>
|
| 209 |
</div>
|
| 210 |
|
|
|
|
| 380 |
setAgentModels(prev => ({ ...prev, [agent.id]: model }));
|
| 381 |
setActiveSettings(null);
|
| 382 |
}}
|
| 383 |
+
className={`w-full text-left px-4 py-3 rounded-xl text-sm font-medium transition-all flex items-center justify-between border ${agentModels[agent.id as keyof typeof agentModels] === model ? 'bg-purple-500/20 text-white border-purple-500/50 shadow-lg shadow-purple-500/10' : 'text-slate-400 border-transparent hover:bg-white/10 hover:text-white hover:border-white/10'}`}
|
| 384 |
>
|
| 385 |
<span>{model}</span>
|
| 386 |
+
{agentModels[agent.id as keyof typeof agentModels] === model && <span className="text-purple-400">●</span>}
|
| 387 |
</button>
|
| 388 |
))}
|
| 389 |
</div>
|
frontend/components/Sidebar.tsx
CHANGED
|
@@ -71,11 +71,11 @@ export default function Sidebar({ tabs, activeTab, onTabSelect, status, lang, fo
|
|
| 71 |
onTabSelect(tab);
|
| 72 |
window.history.pushState({}, '', `?tab=${tabSlug}`);
|
| 73 |
}}
|
| 74 |
-
className={`flex items-center rounded-
|
| 75 |
isActive
|
| 76 |
-
? "bg-white/10 text-white shadow-
|
| 77 |
: "text-slate-400 hover:bg-white/5 hover:text-white"
|
| 78 |
-
} ${isExpanded ? 'px-
|
| 79 |
>
|
| 80 |
<span className={`text-xl transition-all duration-300 ${isActive ? 'scale-110' : 'group-hover:scale-110 opacity-70 group-hover:opacity-100'}`}>
|
| 81 |
{icon}
|
|
|
|
| 71 |
onTabSelect(tab);
|
| 72 |
window.history.pushState({}, '', `?tab=${tabSlug}`);
|
| 73 |
}}
|
| 74 |
+
className={`flex items-center rounded-2xl transition-all duration-300 active:scale-90 group relative ${
|
| 75 |
isActive
|
| 76 |
+
? "bg-white/10 text-white shadow-[inset_0_0_20px_rgba(255,255,255,0.05)] border border-white/10"
|
| 77 |
: "text-slate-400 hover:bg-white/5 hover:text-white"
|
| 78 |
+
} ${isExpanded ? 'px-5 py-4 gap-4' : 'px-0 py-4 w-full justify-center'}`}
|
| 79 |
>
|
| 80 |
<span className={`text-xl transition-all duration-300 ${isActive ? 'scale-110' : 'group-hover:scale-110 opacity-70 group-hover:opacity-100'}`}>
|
| 81 |
{icon}
|