style: set pill font to 8px and add breathing room around icons

Reduce font to text-[8px], restore icons to size-2.5 for legibility,
and bump padding to px-1.5 py-0.5 so icons aren't flush with the
pill border.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
David Kaya
2026-03-25 20:28:43 +01:00
co-authored by Copilot
parent 23c8a6bb9b
commit 689b853a8a
+14 -14
View File
@@ -63,7 +63,7 @@ export function InlineModelPill({
<button
aria-expanded={open}
aria-haspopup="listbox"
className={`inline-flex items-center gap-0.5 rounded border px-1 py-px text-[10px] font-medium transition ${
className={`inline-flex items-center gap-1 rounded border px-1.5 py-0.5 text-[8px] font-medium transition ${
open
? 'border-indigo-500/40 bg-indigo-500/10 text-indigo-300'
: 'border-zinc-700/60 bg-zinc-800/40 text-zinc-400 hover:border-zinc-600 hover:text-zinc-300'
@@ -72,9 +72,9 @@ export function InlineModelPill({
onClick={() => setOpen(!open)}
type="button"
>
{provider && <ProviderIcon provider={provider} className="size-2" />}
{provider && <ProviderIcon provider={provider} className="size-2.5" />}
<span className="max-w-[100px] truncate">{displayName}</span>
<ChevronDown className={`size-2 transition ${open ? 'rotate-180' : ''}`} />
<ChevronDown className={`size-2.5 transition ${open ? 'rotate-180' : ''}`} />
</button>
{open && !disabled && (
@@ -154,8 +154,8 @@ export function InlineThinkingPill({
if (supportedEfforts && supportedEfforts.length === 0) {
return (
<span className="inline-flex items-center gap-0.5 rounded border border-zinc-800/40 bg-zinc-800/20 px-1 py-px text-[10px] text-zinc-600">
<Sparkles className="size-2" />
<span className="inline-flex items-center gap-1 rounded border border-zinc-800/40 bg-zinc-800/20 px-1.5 py-0.5 text-[8px] text-zinc-600">
<Sparkles className="size-2.5" />
N/A
</span>
);
@@ -168,7 +168,7 @@ export function InlineThinkingPill({
<button
aria-expanded={open}
aria-haspopup="listbox"
className={`inline-flex items-center gap-0.5 rounded border px-1 py-px text-[10px] font-medium transition ${
className={`inline-flex items-center gap-1 rounded border px-1.5 py-0.5 text-[8px] font-medium transition ${
open
? 'border-indigo-500/40 bg-indigo-500/10 text-indigo-300'
: 'border-zinc-700/60 bg-zinc-800/40 text-zinc-400 hover:border-zinc-600 hover:text-zinc-300'
@@ -177,9 +177,9 @@ export function InlineThinkingPill({
onClick={() => setOpen(!open)}
type="button"
>
<Sparkles className="size-2" />
<Sparkles className="size-2.5" />
<span>{currentLabel}</span>
<ChevronDown className={`size-2 transition ${open ? 'rotate-180' : ''}`} />
<ChevronDown className={`size-2.5 transition ${open ? 'rotate-180' : ''}`} />
</button>
{open && !disabled && (
@@ -230,7 +230,7 @@ export function InlineToolsPill({
<button
aria-expanded={open}
aria-haspopup="listbox"
className={`inline-flex items-center gap-0.5 rounded border px-1 py-px text-[10px] font-medium transition ${
className={`inline-flex items-center gap-1 rounded border px-1.5 py-0.5 text-[8px] font-medium transition ${
open
? 'border-indigo-500/40 bg-indigo-500/10 text-indigo-300'
: 'border-zinc-700/60 bg-zinc-800/40 text-zinc-400 hover:border-zinc-600 hover:text-zinc-300'
@@ -239,9 +239,9 @@ export function InlineToolsPill({
onClick={() => setOpen(!open)}
type="button"
>
<Server className="size-2" />
<Server className="size-2.5" />
<span>{enabledCount}/{totalCount} tools</span>
<ChevronDown className={`size-2 transition ${open ? 'rotate-180' : ''}`} />
<ChevronDown className={`size-2.5 transition ${open ? 'rotate-180' : ''}`} />
</button>
{open && !disabled && (
@@ -340,7 +340,7 @@ export function InlineApprovalPill({
<button
aria-expanded={open}
aria-haspopup="listbox"
className={`inline-flex items-center gap-0.5 rounded border px-1 py-px text-[10px] font-medium transition ${
className={`inline-flex items-center gap-1 rounded border px-1.5 py-0.5 text-[8px] font-medium transition ${
open
? 'border-indigo-500/40 bg-indigo-500/10 text-indigo-300'
: isOverridden
@@ -351,9 +351,9 @@ export function InlineApprovalPill({
onClick={() => setOpen(!open)}
type="button"
>
<ShieldCheck className="size-2" />
<ShieldCheck className="size-2.5" />
<span>{effectiveAutoApproved.size}/{approvalTools.length} auto-approved</span>
<ChevronDown className={`size-2 transition ${open ? 'rotate-180' : ''}`} />
<ChevronDown className={`size-2.5 transition ${open ? 'rotate-180' : ''}`} />
</button>
{open && !disabled && (