mirror of
https://github.com/davidkaya/aryx.git
synced 2026-07-24 21:48:36 +02:00
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:
@@ -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 && (
|
||||
|
||||
Reference in New Issue
Block a user