字体大小修改

This commit is contained in:
fengxiangdebaozi committed 2026-06-04 20:49:32 +08:00
1 parent 90bced3ed2
commit cca3d8eb41
5 files changed
+116 -55

No files matched your search

@@ -1528,17 +1528,17 @@ function HumanParticipationCard() {
<Activity className="w-4 h-4 text-primary" strokeWidth={2.5} />
<h2 className="text-xs font-bold text-slate-900 uppercase tracking-widest">人工参与</h2>
</div>
<div className="flex items-center justify-between p-2 rounded-xl bg-slate-50 border border-slate-100">
<div className="flex items-center gap-2.5">
<Man1Avatar size="h-7 w-7" />
<span className="text-xs font-bold text-slate-800">用户</span>
<div className="flex min-h-[56px] items-center justify-between gap-3 rounded-xl border border-slate-100 bg-slate-50 p-3">
<div className="flex min-w-0 items-center gap-3">
<Man1Avatar size="h-10 w-10" />
<span className="truncate text-sm font-bold leading-5 text-slate-800">用户</span>
</div>
<div className="flex items-center gap-1.5">
<div className="flex shrink-0 items-center gap-1.5 rounded-full border border-white/70 bg-white/70 px-2 py-1">
<span className="flex h-1.5 w-1.5 relative">
<span className="animate-ping absolute inline-flex h-full w-full rounded-full bg-emerald-400 opacity-75"></span>
<span className="relative inline-flex rounded-full h-1.5 w-1.5 bg-emerald-500"></span>
</span>
<span className="text-[10px] font-bold text-emerald-600">在线</span>
<span className="whitespace-nowrap text-xs font-bold leading-none text-emerald-600">在线</span>
</div>
</div>
</div>
@@ -1808,7 +1808,7 @@ function RoleRow({
return (
<div
id={`role-item-${role.id}`}
className={`flex items-center justify-between p-2 rounded-xl transition ${
className={`flex min-h-[60px] items-center justify-between gap-3 rounded-xl p-3 transition ${
isActive
? "bg-slate-50 border border-slate-100"
: isBootingUp
@@ -1816,17 +1816,19 @@ function RoleRow({
: "opacity-60"
}`}
>
<div className="flex items-center gap-2.5">
<RoleAvatarBadge role={role} agentNameToRole={agentNameToRole} />
<div className="flex flex-col">
<span className="text-xs font-bold text-slate-800 tracking-tight">{role.name}</span>
<div className="flex min-w-0 items-center gap-3">
<RoleAvatarBadge role={role} agentNameToRole={agentNameToRole} size="h-10 w-10" />
<div className="flex min-w-0 flex-col gap-0.5">
<span className="truncate text-sm font-bold leading-5 tracking-tight text-slate-800">
{role.name}
</span>
{role.type === "agent" && (
<span className="text-[9px] text-primary font-medium leading-none">AI 智能体</span>
<span className="text-[11px] text-primary font-medium leading-4">AI 智能体</span>
)}
</div>
</div>
<div className="flex items-center gap-1.5 shrink-0">
<div className="flex shrink-0 items-center gap-1.5 rounded-full border border-white/70 bg-white/70 px-2 py-1">
{isOngoing ? (
<span className="flex h-1.5 w-1.5 relative">
<span className="animate-ping absolute inline-flex h-full w-full rounded-full bg-primary/60 opacity-75"></span>
@@ -1845,7 +1847,7 @@ function RoleRow({
<span className="h-1.5 w-1.5 rounded-full bg-slate-300" />
)}
<span
className={`text-[10px] font-semibold ${
className={`whitespace-nowrap text-xs font-semibold leading-none ${
isOngoing
? "text-[var(--brand-900)]"
: role.status === "在线"
@@ -1908,23 +1910,26 @@ function RightSidebar({
<h2 className="text-xs font-bold text-slate-900 uppercase tracking-widest">澄清记录</h2>
</div>
<div className="flex-1 overflow-y-auto pr-1 space-y-4 font-normal custom-scrollbar">
<div className="relative pl-4 border-l border-red-50 space-y-4 ml-2 pt-1.5 pb-2">
<div className="flex-1 overflow-y-auto pr-1 font-normal custom-scrollbar">
<div className="relative ml-2 space-y-4 border-l border-red-50 pb-2 pl-4 pt-1.5">
{timelineEntries.map((entry) => (
<div key={entry.id} className="relative">
<div className="absolute -left-[20.5px] top-0.5 h-3 w-3 rounded-full bg-primary border-2 border-white ring-2 ring-[var(--brand-200)]" />
<div className="space-y-0.5">
<div className="flex items-center gap-2">
<span className="text-[10px] text-slate-400 font-mono tracking-tight shrink-0">
{entry.time}
</span>
<h4 className="text-[11.5px] font-bold text-slate-800 tracking-tight leading-none">
<div
key={entry.id}
className="relative rounded-lg px-1.5 py-1 transition-colors hover:bg-slate-50/80"
>
<div className="absolute -left-[20.5px] top-2 h-3 w-3 rounded-full bg-primary border-2 border-white ring-2 ring-[var(--brand-200)]" />
<div className="grid grid-cols-[68px_minmax(0,1fr)] gap-x-2">
<span className="font-mono text-xs leading-5 tracking-tight text-slate-400">
{entry.time}
</span>
<div className="min-w-0">
<h4 className="break-words text-sm font-bold leading-5 tracking-tight text-slate-800">
{entry.title}
</h4>
<p className="mt-1 break-words text-xs leading-5 text-slate-500">
{entry.desc}
</p>
</div>
<p className="text-[11px] text-slate-500 leading-normal pl-0.5 mt-0.5 font-sans">
{entry.desc}
</p>
</div>
</div>
))}