Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

Type, sizing and icon polish: weight 415, tracking, one icon stroke (#6690)

Milind Soni51fc066e95aa
diff --git a/DESIGN.md b/DESIGN.md
index d9a38b5a22..07b92aa964 100644
--- a/DESIGN.md
+++ b/DESIGN.md
@@ -105,25 +105,37 @@ Midnight and Daylight use **Geist** for text and **Geist Mono** for code, keys
and paths. A skin may choose its own face; components never set `font-family`
and never add fonts.
+Regular text is weight 415 (`--font-weight-normal`, which `font-normal` uses):
+Geist is a variable font, so this sits a touch above 400 and a static face
+rounds it to 400. Text tracks at +0.012em (`--tracking-ui`, set once on
+`body`); a skin or a theme with its own face resets it to 0, and code and keys
+are never tracked. Titles of 17px and up keep `tracking-[-0.01em]`.
+
| Use | Size / line height | Weight | Ink |
|---|---|---|---|
| Page or dialog title | 20px, `tracking-[-0.01em]` | 600 | `ink` |
-| Sheet or section title | 17px | 600 | `ink` |
-| Chat bubble (Simple) | 15 / 22px | 400 | `ink` |
-| Menu item (`MENU_ITEM`) | 14 / 18px | 400 | `ink` |
-| Body, rows, menu rows (`MENU_ROW`) | 13 / 18px | 400 | `ink` or `ink-secondary` |
-| Names in lists | 13 / 18px | 500 | `ink` |
+| Sheet, section or Settings page title | 17px | 600 | `ink` |
+| Chat text, both modes | 15 / 22px | 415 | `ink` |
+| Inline code | 0.93em of its text, on ink at 4% | 415 | `ink-secondary` |
+| Menu item (`MENU_ITEM`) | 14 / 18px; the composer's menu 14 / 20px in 32px rows | 415 | `ink` |
+| Body, rows, menu rows (`MENU_ROW`) | 13 / 18px | 415 | `ink` or `ink-secondary` |
+| Names in lists (bots in the sidebar 14 / 20px) | 13 / 18px | 500 | `ink` |
+| Sidebar group labels ("Bots", "Tools", a department) | 13 / 18px | 415 | `ink-secondary` |
+| Pinned bot captions | 12 / 16px | 415 | `ink` |
| Speaker names in transcripts (people and bots) | 13px | 600 | bot colour, else `ink-secondary` |
-| Meta, hints, group labels | 12 / 16px | 400 (group labels 500) | `ink-tertiary` |
-| Keycaps (`ShortcutHint`), tiny badges | 11px | 400 | `ink-secondary` or `ink-tertiary` |
+| Meta, hints, menu group labels | 12 / 16px | 415 (menu group labels 500) | `ink-tertiary` |
+| Timestamps | 12 / 16px | 500 | `ink-tertiary` or `ink-secondary` |
+| Keycaps (`ShortcutHint`), tiny badges | 11px | 415 | `ink-secondary` or `ink-tertiary` |
Rules:
- **Buttons size their own labels.** `.ui-button` and its variants set the
size and weight; don't add text classes to them.
-- **Stick to the table.** No 16px or 18px body text, and no new text under 11px.
-- **Three weights:** 400 for text, 500 for names and labels, 600 for titles
- and for speaker names in transcripts. No 700.
+- **Stick to the table.** No 16px or 18px body text. Nothing under 12px
+ except keycaps and tiny badges, in both modes: Advanced uses the same scale
+ as Simple.
+- **Three weights:** 415 for text (`font-normal`), 500 for names, labels and
+ timestamps, 600 for titles and for speaker names in transcripts. No 700.
- **Sentence case everywhere.** Titles, buttons, menu items and labels.
No ALL CAPS labels and no Title Case.
- **One line for titles and rows.** Truncate with `truncate` and keep the
@@ -141,8 +153,8 @@ element's job and never a pixel value:
|---|---|---|
| Buttons, pills, chips, avatars | full | the button and chip classes, `rounded-full` |
| Menu rows | 6px | `rounded-md` |
-| Fields, controls, sidebar rows | 8px | `rounded-lg` |
-| Cards, menus, popovers | 12px | `rounded-xl` |
+| Fields, controls | 8px | `rounded-lg` |
+| Cards, menus, popovers, sidebar rows and pinned bots | 12px | `rounded-xl` |
| Dialogs | 14px | `.ui-modal` |
| Bubbles, cards in the transcript | 18px | `rounded-4xl` |
| Composer | 22px (18px once it wraps) | set by the composer |
@@ -163,8 +175,13 @@ element's job and never a pixel value:
icon.
- **Labels line up with their heading.** Put shortcut letters, counts and
chevrons at the end of a row, not before the label.
-- **Control heights: 24, 28, 32 or 36px.** Menu rows are 30px. On touch
- screens, targets grow to 40–44px with the `touch:` variant.
+- **Control heights: 24, 28, 32 or 36px.** Menu rows are 30px (32px in the
+ composer's menu). The chat header's controls and the sidebar's top buttons
+ are 36px. On touch screens, targets grow to 40–44px with the `touch:`
+ variant.
+- **Sidebar rows:** Simple's rows have 8px padding and a 10px gap after the
+ 36px avatar; every row hovers at `bg-ink/[0.06]`. The sidebar is 280px wide
+ in both modes; pinned bots are 95 × 92px tiles with a 60px avatar.
- **Group with space before you group with lines.** Add a divider only between
groups that space alone can't separate. Never a divider under a heading.
- **No cards inside cards.** If a card needs sections, use spacing and a group
@@ -180,10 +197,11 @@ element's job and never a pixel value:
- **Use `lucide-react` only.** No emoji as icons, no icon fonts, no
hand-drawn SVGs for things Lucide has. Product marks (the Maus, third-party
logos) are the exception.
-- **Sizes:** 16px in menus, rows and toolbars; 14px next to 12–13px text.
-- **Don't set `strokeWidth`.** The stylesheet draws Lucide at 1.75, and menus
- at 1.5 through `MENU_SHEET`. Menu code that passes `MENU_STROKE` is the one
- exception.
+- **Sizes:** 16px in menus, rows and toolbars, and in every 36px or 28px
+ button; 14px next to 12–13px text; 12px for disclosure chevrons.
+- **Don't set `strokeWidth`.** The stylesheet draws every Lucide icon at 1.9,
+ menus included. The only exceptions are a glyph on a filled control (the
+ send arrow) and deliberately heavy marks (a check, a filled badge).
- **Icons are bare.** Don't put them in tinted squares or circles. A bot's
avatar is the only mark that gets a plate.
- **Decorative icons get `aria-hidden="true"`.** An icon-only button needs an
diff --git a/scripts/testing/usage-details-ui.e2e.test.ts b/scripts/testing/usage-details-ui.e2e.test.ts
index 519e28ff3d..a73d12c778 100644
--- a/scripts/testing/usage-details-ui.e2e.test.ts
+++ b/scripts/testing/usage-details-ui.e2e.test.ts
@@ -107,7 +107,7 @@ if (!enabled) console.log("skipping usage details UI: set OMB_UI_E2E=1 to instal
await expect.poll(() => evaluate("Boolean(document.querySelector('[role=dialog]'))"), { timeout: 10_000 }).toBe(true);
await ui("screenshot", "--out", `${handle.logPath}.settings-1100.png`);
await ui("press", "--keys", "Escape");
- await expect.poll(() => evaluate("document.querySelector('[data-sidebar]').getBoundingClientRect().width")).toBe(320);
+ await expect.poll(() => evaluate("document.querySelector('[data-sidebar]').getBoundingClientRect().width")).toBe(280);
await openMore();
await activate('[role="menu"][aria-label="More"] button[data-menu-key="inspector"]');
await expect.poll(() => evaluate("Boolean(document.querySelector('[aria-label=Inspector]'))"), { timeout: 10_000 }).toBe(true);
diff --git a/src/components/AttachmentPreview.tsx b/src/components/AttachmentPreview.tsx
index e1a3bee79f..a313107cd3 100644
--- a/src/components/AttachmentPreview.tsx
+++ b/src/components/AttachmentPreview.tsx
@@ -976,7 +976,7 @@ function CompactFileChip({ file, message, linked, save, preview, className }: {
if (!message || (!file.private && !linked)) {
return (
<span title={t("attach.legacyFile", { name: file.name })} className={cn(FILE_CHIP, "gap-1.5 px-2.5", className)}>
- <FileText size={14} strokeWidth={1.75} className="shrink-0" aria-hidden="true" />
+ <FileText size={14} className="shrink-0" aria-hidden="true" />
{name}
<span className="shrink-0 text-[12px]">{t("attach.unavailable")}</span>
</span>
@@ -993,16 +993,16 @@ function CompactFileChip({ file, message, linked, save, preview, className }: {
{...chipNameAction(preview, save, file.name, save.retryable)}
className="inline-flex h-7 min-w-0 items-center gap-1.5 rounded-full ps-2.5 pe-2 transition-colors hover:bg-ink/[0.06] hover:text-ink focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus disabled:cursor-wait"
>
- <FileText size={14} strokeWidth={1.75} className="shrink-0" aria-hidden="true" />
+ <FileText size={14} className="shrink-0" aria-hidden="true" />
{name}
- {preview.opens ? <Eye size={13} strokeWidth={1.75} className="shrink-0" aria-hidden="true" /> : save.state === "saving" ? (
+ {preview.opens ? <Eye size={13} className="shrink-0" aria-hidden="true" /> : save.state === "saving" ? (
<LoaderCircle size={13} className="shrink-0 animate-spin" aria-hidden="true" />
) : save.state === "saved" ? (
<Check size={13} className="shrink-0 text-success" aria-hidden="true" />
) : failed ? (
save.retryable && <RotateCcw size={13} className="shrink-0 text-danger" aria-hidden="true" />
) : (
- <Download size={13} strokeWidth={1.75} className="shrink-0" aria-hidden="true" />
+ <Download size={13} className="shrink-0" aria-hidden="true" />
)}
</button>
{preview.opens ? <SaveIconButton name={file.name} save={save} retryable={save.retryable} /> : <FilePreviewButton path={file.path} name={file.name} message={message} />}
diff --git a/src/components/CallView.tsx b/src/components/CallView.tsx
index 6c8825aba4..5e36e87688 100644
--- a/src/components/CallView.tsx
+++ b/src/components/CallView.tsx
@@ -280,7 +280,7 @@ export function CallTargetButton({
>
{active
? <PhoneOff size={composer || round ? 15 : 17} />
- : composer ? fill ? <AudioLines size={15} strokeWidth={1.75} absoluteStrokeWidth aria-hidden="true" /> : <AudioLines size={16} aria-hidden="true" /> : <Phone size={round ? 15 : 17} />}
+ : composer ? fill ? <AudioLines size={16} strokeWidth={1.75} absoluteStrokeWidth aria-hidden="true" /> : <AudioLines size={16} aria-hidden="true" /> : <Phone size={round ? 15 : 17} />}
{unavailable && (
<span className="absolute right-1 top-1 size-1.5 rounded-full bg-warning ring-2 ring-app" aria-hidden="true" />
)}
diff --git a/src/components/ChatMoreMenu.test.ts b/src/components/ChatMoreMenu.test.ts
index 03496ec254..a44daa669c 100644
--- a/src/components/ChatMoreMenu.test.ts
+++ b/src/components/ChatMoreMenu.test.ts
@@ -80,14 +80,14 @@ beforeEach(() => {
});
describe("ChatMoreMenu, the round ⋯ for the bot panel", () => {
- it("is a round 32px button labelled More, on the raised surface in Simple mode", () => {
+ it("is a round 36px button labelled More, on the raised surface in Simple mode", () => {
const menu = menuOf(createElement(ChatMoreMenu, { bot }));
expect(menu.ariaLabel).toBe("More");
expect(menu.placement).toBeUndefined();
expect(menu.trigger).toContain('data-testid="chat-more"');
- expect(menu.trigger).toMatch(/class="[^"]*\bsize-8\b[^"]*\brounded-full\b[^"]*\bbg-composer\b[^"]*\bring-inset\b/);
+ expect(menu.trigger).toMatch(/class="[^"]*\bsize-9\b[^"]*\brounded-full\b[^"]*\bbg-composer\b[^"]*\bring-inset\b/);
fixture.advanced = true;
- expect(menuOf(createElement(ChatMoreMenu, { bot })).trigger).toMatch(/class="[^"]*\bsize-8\b[^"]*\brounded-full\b[^"]*\bbg-raised\/50\b/);
+ expect(menuOf(createElement(ChatMoreMenu, { bot })).trigger).toMatch(/class="[^"]*\bsize-9\b[^"]*\brounded-full\b[^"]*\bbg-raised\/50\b/);
});
it("offers threads in Simple mode, and Usage and the Inspector unlocked", () => {
@@ -205,7 +205,7 @@ describe("ChatHeaderMenu, Advanced mode's header ⋯", () => {
expect(menu.items.find((item) => item.key === "inspector")).toMatchObject({ separatorBefore: true });
expect(menu.items.every((item) => !item.disabled && item.heading !== "In Advanced mode")).toBe(true);
expect(menu).toMatchObject({ placement: "below", openOnHover: true });
- expect(menu.trigger).toMatch(/data-testid="chat-more" class="flex size-8 items-center justify-center rounded-full /);
+ expect(menu.trigger).toMatch(/data-testid="chat-more" class="flex size-9 items-center justify-center rounded-full /);
});
it("has no thread items even if rendered by ChatMoreMenu in Advanced mode", () => {
diff --git a/src/components/ChatMoreMenu.tsx b/src/components/ChatMoreMenu.tsx
index 7ca2bf6718..a4abb4e641 100644
--- a/src/components/ChatMoreMenu.tsx
+++ b/src/components/ChatMoreMenu.tsx
@@ -187,7 +187,7 @@ function RoundChatMoreMenu({ bot, phoneHeader }: { bot: Bot; phoneHeader: boolea
<span
data-testid="chat-more"
className={cn(
- "flex size-8 items-center justify-center rounded-full",
+ "flex size-9 items-center justify-center rounded-full",
advanced ? "bg-raised/50 transition-colors hover:bg-raised" : cn(ELEVATED_CONTROL, ELEVATED_HOVER, open && ELEVATED_OPEN),
"max-md:size-9 max-md:border max-md:border-hairline max-md:bg-card",
open || on ? "text-accent" : "text-ink",
@@ -268,12 +268,12 @@ export function ChatHeaderMenu({ bot }: { bot: Bot }): JSX.Element {
<span
data-testid="chat-more"
className={cn(
- "flex size-8 items-center justify-center rounded-full transition-colors hover:bg-ink/[0.06]",
+ "flex size-9 items-center justify-center rounded-full transition-colors hover:bg-ink/[0.06]",
open || on ? "text-accent" : "text-ink-secondary hover:text-ink",
)}
title={t("chat.more")}
>
- <MoreHorizontal size={18} />
+ <MoreHorizontal size={16} />
</span>
)}
/>
diff --git a/src/components/ChatView.controls.test.ts b/src/components/ChatView.controls.test.ts
index 2a980004ce..a22e163378 100644
--- a/src/components/ChatView.controls.test.ts
+++ b/src/components/ChatView.controls.test.ts
@@ -85,7 +85,7 @@ describe("the header's right side", () => {
expect(controls).toContain("data-test-model-control");
expect(fixture.model).toMatchObject({ threadId: "selected" });
const computer = controls.match(/<button[^>]*data-tour="computer"[^>]*>/)?.[0] ?? "";
- expect(computer.split(" ")).toEqual(expect.arrayContaining(["rounded-full", "size-8"]));
+ expect(computer.split(" ")).toEqual(expect.arrayContaining(["rounded-full", "size-9"]));
expect(markup).not.toContain('data-testid="chat-more"');
expect(fixture.menus.find((menu) => menu.ariaLabel === "More")).toBeUndefined();
expect(markup).toContain("data-chathead-pill");
diff --git a/src/components/ChatView.tsx b/src/components/ChatView.tsx
index 7fd368ddff..e3320de28d 100644
--- a/src/components/ChatView.tsx
+++ b/src/components/ChatView.tsx
@@ -513,7 +513,7 @@ const Bubble = memo(function Bubble({
}}
/>}
{message.steered && (
- <div className="mt-1 text-[11px] text-ink-tertiary">
+ <div className="mt-1 text-[12px] leading-4 text-ink-tertiary">
{t("chat.sentMidTurn")}
</div>
)}
@@ -558,7 +558,7 @@ const Bubble = memo(function Bubble({
{!tabled && botActions}
<span
className={cn(
- "self-end pb-1 text-[11px] tabular-nums text-ink-tertiary opacity-0 transition-opacity group-hover:opacity-100",
+ "self-end pb-1 text-[12px] font-medium leading-4 tabular-nums whitespace-nowrap text-ink-tertiary opacity-0 transition-opacity group-hover:opacity-100",
user ? "order-first mr-2" : "ml-2",
)}
>
@@ -1061,7 +1061,7 @@ export const ChatView = memo(function ChatView({ bot: profile, inForkPanel = fal
<button
onClick={() => dispatch({ type: "interrupt", botId: bot.id, threadId: bot.threadId })}
className={cn(
- "flex items-center gap-1.5 rounded-full border border-hairline/40 bg-raised/60 px-2.5 py-1 text-[13px] text-ink-secondary hover:bg-raised hover:text-ink",
+ "flex h-9 items-center gap-1.5 rounded-full border border-hairline/40 bg-raised/60 px-3 text-[13px] text-ink-secondary hover:bg-raised hover:text-ink",
COMPACT_BUBBLE,
)}
title={t("chat.stopTurn")}
@@ -1086,7 +1086,7 @@ export const ChatView = memo(function ChatView({ bot: profile, inForkPanel = fal
onClick={(event) => { if (!state.computerOpen) rememberComputerPanelOpen({ botId: bot.id, opener: event.currentTarget, tabs: event.detail === 0 }); dispatch({ type: "toggleComputer" }); }}
className={cn(
"relative",
- "flex size-8 items-center justify-center rounded-full", ELEVATED_FLOAT, ELEVATED_HOVER,
+ "flex size-9 items-center justify-center rounded-full", ELEVATED_FLOAT, ELEVATED_HOVER,
state.computerOpen ? "text-accent" : "text-ink-secondary hover:text-ink",
)}
title={t("chat.computer")} aria-label={busy && place === "browser" ? `${t("chat.computer")}, ${t("place.live")}` : t("chat.computer")}
@@ -1114,7 +1114,7 @@ export const ChatView = memo(function ChatView({ bot: profile, inForkPanel = fal
<div
ref={scrollRef}
- className="glass-scroller h-full overflow-x-hidden overflow-y-auto overscroll-y-contain px-5 [overflow-anchor:none]"
+ className="glass-scroller h-full overflow-x-hidden overflow-y-auto overscroll-y-contain px-4 [overflow-anchor:none]"
// Simple mode's composer sits on plain canvas, so a row scrolled into view stops clear of it.
style={advanced ? undefined : { scrollPaddingBottom: composerDock.pad }}
{...scrollHandlers}
@@ -1210,7 +1210,7 @@ export const ChatView = memo(function ChatView({ bot: profile, inForkPanel = fal
<div ref={composerDockRef} className="pointer-events-none absolute inset-x-0 bottom-0 z-[2] chat-column-dock">
{advanced && lastRunStep && showRun(recordedRun) && showRunCard && runDismissed.get(transcriptKey) !== lastRunStep.id && (
- <div className="flex justify-end px-5 pb-2">
+ <div className="flex justify-end px-4 pb-2">
<VerifyCard
key={transcriptKey}
steps={recordedRun}
diff --git a/src/components/CodeBlock.tsx b/src/components/CodeBlock.tsx
index c8e7f9d6c5..60ac6bef8d 100644
--- a/src/components/CodeBlock.tsx
+++ b/src/components/CodeBlock.tsx
@@ -186,14 +186,14 @@ export function CodePlate({ copied, onCopy, copyLabel, items }: {
<button type="button" onClick={onCopy} className={PLATE_BUTTON}
title={copied === "copied" ? t("code.copiedTitle") : copied === "failed" ? t("common.copyFailed") : copyLabel}
aria-label={copied === "copied" ? t("code.copiedTitle") : copied === "failed" ? t("common.copyFailed") : copyLabel}>
- {copied === "failed" ? <X size={14} className="text-danger" aria-hidden="true" />
- : copied === "copied" ? <Check size={14} className="text-success" aria-hidden="true" />
- : <Copy size={14} aria-hidden="true" />}
+ {copied === "failed" ? <X size={16} className="text-danger" aria-hidden="true" />
+ : copied === "copied" ? <Check size={16} className="text-success" aria-hidden="true" />
+ : <Copy size={16} aria-hidden="true" />}
</button>
{copied !== "idle" && <span role="status" className="sr-only">{copied === "failed" ? t("common.copyFailed") : t("code.copiedTitle")}</span>}
<SidebarPopoverMenu items={items} ariaLabel={t("chat.more")} placement="above" align="end" triggerTitle={t("chat.more")}
triggerClassName="rounded-full focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent/60"
- renderTrigger={() => <span className={PLATE_BUTTON}><MoreHorizontal size={14} aria-hidden="true" /></span>} />
+ renderTrigger={() => <span className={PLATE_BUTTON}><MoreHorizontal size={16} aria-hidden="true" /></span>} />
</div>
);
}
diff --git a/src/components/CommandPalette.tsx b/src/components/CommandPalette.tsx
index 584a2599f6..5480d0b738 100644
--- a/src/components/CommandPalette.tsx
+++ b/src/components/CommandPalette.tsx
@@ -211,7 +211,7 @@ export function CommandPalette({ onOpenChange }: { onOpenChange?: (open: boolean
roomOffset + i,
() => void activate({ kind: "room", group }),
<>
- <Users size={16} strokeWidth={1.75} className="mx-[3px] shrink-0 text-ink-secondary" />
+ <Users size={16} className="mx-[3px] shrink-0 text-ink-secondary" />
<span className="truncate text-[14px] text-ink">{group.name}</span>
</>,
),
diff --git a/src/components/Composer.simple.test.ts b/src/components/Composer.simple.test.ts
index e129c3033d..25c0ee7d00 100644
--- a/src/components/Composer.simple.test.ts
+++ b/src/components/Composer.simple.test.ts
@@ -131,7 +131,7 @@ describe("the Simple composer in a bot chat", () => {
expect([...menu()!.querySelectorAll("[data-menu-key]")].map((row) => row.getAttribute("data-menu-key"))).toEqual(["attach", "goal", "teach"]);
expect([...menu()!.querySelectorAll("[data-menu-key]")].map((row) => row.textContent)).toEqual(["Attach files", "Work until done", "Teach a task"]);
const row = menu()!.querySelector("[data-menu-key='attach']")!.className.split(" ");
- expect(row).toEqual(expect.arrayContaining(["h-[34px]", "gap-2", "px-3", "text-[15px]"]));
+ expect(row).toEqual(expect.arrayContaining(["h-8", "gap-2", "px-2", "rounded-md", "text-[14px]", "leading-5"]));
expect(menu()!.className.split(" ")).toEqual(expect.arrayContaining(["popover-surface", "rounded-[12px]", "w-max", "min-w-[200px]", "max-w-[280px]"]));
});
@@ -173,7 +173,7 @@ describe("the Simple composer in a bot chat", () => {
it("sets the composer on plain canvas from its top edge down, with no fade above it", () => {
render({ bot });
const backdrop = container.querySelector("[data-composer-backdrop]")!.className.split(" ");
- expect(backdrop).toEqual(expect.arrayContaining(["bg-app", "top-0", "-bottom-4", "-left-5", "-right-5"]));
+ expect(backdrop).toEqual(expect.arrayContaining(["bg-app", "top-0", "-bottom-4", "-left-4", "-right-4"]));
expect(backdrop.some((name) => /gradient|blur|^from-|^to-|^opacity/.test(name))).toBe(false);
});
diff --git a/src/components/Composer.tsx b/src/components/Composer.tsx
index 8c177450b7..832bb4364b 100644
--- a/src/components/Composer.tsx
+++ b/src/components/Composer.tsx
@@ -689,7 +689,7 @@ export function Composer({
const goal = !group?.dm ? { on: effectiveChannelMode === "goal", onToggle: toggleGoal, solo: !group } : undefined;
return (
- <div className={cn("pointer-events-none relative px-5", simpleDock ? "pb-4" : "pb-3")}>
+ <div className={cn("pointer-events-none relative px-4", simpleDock ? "pb-4" : "pb-3")}>
{speechError && (
<div className="pointer-events-auto mb-2 w-full rounded-lg border border-warning/30 bg-warning/10 px-3 py-2 text-[12px] text-warning">
{speechError}
@@ -776,7 +776,7 @@ export function Composer({
<div
aria-hidden
data-composer-backdrop
- className={cn("pointer-events-none absolute -left-5 -right-5 bg-app", advanced ? "-bottom-3 top-1/2" : cn("top-0", simpleDock ? "-bottom-4" : "-bottom-3"))}
+ className={cn("pointer-events-none absolute -left-4 -right-4 bg-app", advanced ? "-bottom-3 top-1/2" : cn("top-0", simpleDock ? "-bottom-4" : "-bottom-3"))}
/>
<div ref={shellRef} data-tour="composer" data-look="composer" data-multiline={multiline ? "" : undefined} className={cn("@container/composer relative z-[1]", singleRow ? "flex items-end gap-2" : simpleDock ? cn(SIMPLE_COMPOSER, multiline ? "rounded-[18px]" : "rounded-[22px]") : cn("rounded-2xl px-2 py-1.5", ELEVATED_FLOAT))}>
{singleRow && !locked && (
@@ -820,7 +820,7 @@ export function Composer({
title={t("composer.attach")}
className="flex size-8 shrink-0 items-center justify-center rounded-full text-ink-secondary hover:bg-control hover:text-ink"
>
- <Paperclip size={16} strokeWidth={1.75} absoluteStrokeWidth />
+ <Paperclip size={16} />
</button>}
{advanced && canLearn && <TeachTaskButton onClick={teachTask} />}
{/* Simple mode shows a mode's chip only while it is on, so a choice made in the + menu or the bot panel stays in view. */}
@@ -970,7 +970,7 @@ export function Composer({
)}
title={recording ? t("composer.dictation.stopHint") : t("composer.dictation.hint")}
>
- <Mic size={16} strokeWidth={1.75} absoluteStrokeWidth className="[&_rect]:fill-current" />
+ <Mic size={16} className="[&_rect]:fill-current" />
</button>
)}
{callShown && bot && !group && <CallButton bot={bot} placement="composer" fill={advanced || singleRow ? undefined : slot.fill} ink={slot.ink} inverse={singleRow} />}
diff --git a/src/components/ComposerPlusMenu.tsx b/src/components/ComposerPlusMenu.tsx
index f5037219cd..4e62407617 100644
--- a/src/components/ComposerPlusMenu.tsx
+++ b/src/components/ComposerPlusMenu.tsx
@@ -133,7 +133,7 @@ export function TeachTaskButton({ onClick }: { onClick: () => void }) {
title={t("composer.teachTask")}
className="flex size-8 shrink-0 items-center justify-center rounded-full text-ink-secondary hover:bg-control hover:text-ink"
>
- <GraduationCap size={16} strokeWidth={1.75} absoluteStrokeWidth />
+ <GraduationCap size={16} />
</button>
);
}
@@ -235,7 +235,7 @@ export function ComposerPlusMenu({ onAttach, goal, teach, approval, callBotId, e
</span>
) : (
<span data-composer-plus className={cn("flex items-center justify-center transition-colors", SIMPLE_CONTROL, open && "bg-ink/[0.09] text-ink")}>
- <Plus size={20} strokeWidth={1.75} absoluteStrokeWidth aria-hidden="true" />
+ <Plus size={16} aria-hidden="true" />
</span>
);
if (!circle && items.length === 1) {
@@ -336,9 +336,9 @@ function ComposerMenu({ items, renderTrigger }: { items: SidebarMenuItem[]; rend
close(false);
item.onSelect();
}}
- className="flex h-[34px] w-full items-center gap-2 rounded-[8px] px-3 text-start text-[15px] text-ink transition-colors hover:bg-menu-hover focus-visible:bg-menu-hover focus-visible:outline-none disabled:opacity-50"
+ className="flex h-8 w-full items-center gap-2 rounded-md px-2 py-1.5 text-start text-[14px] leading-5 text-ink transition-colors hover:bg-menu-hover focus-visible:bg-menu-hover focus-visible:outline-none disabled:opacity-50"
>
- <span className={cn("flex size-3.5 shrink-0 items-center justify-center [&_svg]:size-3.5 [&_svg]:stroke-[1.5]", item.active ? "text-accent" : "text-ink-secondary")} aria-hidden="true">{item.icon}</span>
+ <span className={cn("flex size-4 shrink-0 items-center justify-center [&_svg]:size-4", item.active ? "text-accent" : "text-ink-secondary")} aria-hidden="true">{item.icon}</span>
<span className="min-w-0 flex-1 truncate">{item.label}</span>
{item.trailing}
</button>
diff --git a/src/components/ComposerQueuedMessages.tsx b/src/components/ComposerQueuedMessages.tsx
index c986363b30..34e9a47b34 100644
--- a/src/components/ComposerQueuedMessages.tsx
+++ b/src/components/ComposerQueuedMessages.tsx
@@ -121,7 +121,6 @@ export function QueuedComposerMessages({
return <li key={item.queueId} className="flex min-h-10 min-w-0 items-center gap-2 px-2.5 py-1.5">
<CornerDownRight
size={14}
- strokeWidth={1.8}
className="shrink-0 text-ink-secondary"
aria-hidden="true"
/>
diff --git a/src/components/ConnectedWorkspacesSettings.tsx b/src/components/ConnectedWorkspacesSettings.tsx
index 6d16055633..cbf60e26af 100644
--- a/src/components/ConnectedWorkspacesSettings.tsx
+++ b/src/components/ConnectedWorkspacesSettings.tsx
@@ -103,7 +103,7 @@ export function ConnectedWorkspacesSettings({ label, description }: { label?: st
const active = entry.id === saved.activeId;
const confirming = forgetEntry?.id === entry.id;
return <Fragment key={entry.id}>
- <SettingRow title={envLabel(entry)} leading={<span className="flex size-8 items-center justify-center rounded-full bg-ink/[0.05] text-ink-secondary"><Laptop size={18} strokeWidth={1.75} aria-hidden="true" /></span>}
+ <SettingRow title={envLabel(entry)} leading={<span className="flex size-8 items-center justify-center rounded-full bg-ink/[0.05] text-ink-secondary"><Laptop size={18} aria-hidden="true" /></span>}
subtitle={<>{entry.dataDir ?? t("connectedWorkspaces.mainFolder")}{entry.missing && <> · {t("connectedWorkspaces.missing")}</>}</>}>
{active ? <span className="text-[13px] leading-5 text-ink-secondary">{t("connectedWorkspaces.current")}</span> : <>
<button type="button" disabled={busy} aria-label={t("connectedWorkspaces.switchTo", { name: entry.name })} className="ui-button"
@@ -136,7 +136,7 @@ export function ConnectedWorkspacesSettings({ label, description }: { label?: st
</Fragment>;
})}
<SettingsFoldRow id="new-environment" title={t("connectedWorkspaces.newEnvironment")} open={newOpen} onToggle={() => setNewOpen(!newOpen)}
- leading={<span aria-hidden="true" className="flex size-8 items-center justify-center rounded-full bg-ink/[0.05] text-ink-secondary"><Plus size={18} strokeWidth={1.75} /></span>}>
+ leading={<span aria-hidden="true" className="flex size-8 items-center justify-center rounded-full bg-ink/[0.05] text-ink-secondary"><Plus size={18} /></span>}>
<form className="flex flex-col gap-3 py-3 pl-[60px] pr-4" onSubmit={(event) => {
event.preventDefault();
if (!envName.trim()) return;
diff --git a/src/components/DesktopViewer.tsx b/src/components/DesktopViewer.tsx
index 5faddd8965..0f0868121a 100644
--- a/src/components/DesktopViewer.tsx
+++ b/src/components/DesktopViewer.tsx
@@ -181,5 +181,5 @@ function ViewerTool({ id, label, icon: Icon, disabled, active, expanded, onClick
return <button id={id} type="button" title={label} aria-label={label} aria-pressed={active} aria-expanded={expanded} disabled={disabled} onClick={onClick} className={cn(
"ui-icon-button size-11 min-h-11 shrink-0 rounded-xl focus-visible:outline-2 focus-visible:outline-focus",
active ? "bg-accent/15 text-accent-text hover:bg-accent/25" : "text-ink-secondary hover:bg-raised-hover hover:text-ink",
- )}><Icon size={19} strokeWidth={1.75} aria-hidden="true" /></button>;
+ )}><Icon size={19} aria-hidden="true" /></button>;
}
diff --git a/src/components/FrameBarPinnedPages.tsx b/src/components/FrameBarPinnedPages.tsx
index 1764944208..0faea8dfdb 100644
--- a/src/components/FrameBarPinnedPages.tsx
+++ b/src/components/FrameBarPinnedPages.tsx
@@ -98,7 +98,7 @@ export function FrameBarPinnedPages() {
ariaLabel={t("webPanels.bar.label")}
triggerTitle={t("webPanels.bar.label")}
triggerClassName={BAR_BUTTON}
- renderTrigger={() => <Globe size={15} strokeWidth={1.75} aria-hidden="true" />}
+ renderTrigger={() => <Globe size={15} aria-hidden="true" />}
/>
)}
<MeasureRow refEl={measureRef} panels={panels} />
diff --git a/src/components/GroupView.tsx b/src/components/GroupView.tsx
index 94ad978896..31dc747657 100644
--- a/src/components/GroupView.tsx
+++ b/src/components/GroupView.tsx
@@ -844,7 +844,7 @@ export function GroupView({ group, inForkPanel = false }: { group: Group; inFork
<div
ref={scrollRef}
- className="glass-scroller h-full overflow-x-hidden overflow-y-auto px-5 [overflow-anchor:none]"
+ className="glass-scroller h-full overflow-x-hidden overflow-y-auto px-4 [overflow-anchor:none]"
{...scrollHandlers}
>
{setupPending ? (
diff --git a/src/components/ModelPicker.simple.test.ts b/src/components/ModelPicker.simple.test.ts
index 6eaed50a78..aa20410cc2 100644
--- a/src/components/ModelPicker.simple.test.ts
+++ b/src/components/ModelPicker.simple.test.ts
@@ -369,7 +369,7 @@ describe("the model picker in Simple mode", () => {
expect(markup.replace(/title="[^"]*"/, "")).not.toContain("High");
expect(String(chip.props.title)).toContain("High thinking");
expect(String(chip.props.title)).not.toContain("effort");
- expect(String(chip.props.className)).toContain("h-8");
+ expect(String(chip.props.className)).toContain("h-9");
expect(String(chip.props.className)).toContain("rounded-full");
expect(String(chip.props.className)).not.toMatch(/\bborder\b|bg-control/);
expect(markup).not.toContain("@max-4xl/chathead");
diff --git a/src/components/ModelPicker.test.ts b/src/components/ModelPicker.test.ts
index ffd5f909fe..8586c77315 100644
--- a/src/components/ModelPicker.test.ts
+++ b/src/components/ModelPicker.test.ts
@@ -313,7 +313,7 @@ describe("ModelPicker trigger", () => {
expect(markup).toContain("GPT-5.6");
expect(effortChip(markup)).toBeUndefined();
expect(markup).not.toContain("effort");
- expect(markup).toContain("@max-4xl/chathead:size-[30px]");
+ expect(markup).toContain("@max-4xl/chathead:size-9");
expect(markup).not.toContain("data-model-account-compact");
});
@@ -328,7 +328,7 @@ describe("ModelPicker trigger", () => {
expect(markup).toMatch(/<span data-model-account[^>]*>Work · <\/span>/);
expect(markup).not.toMatch(/<span data-model-account[^>]*>Personal/);
expect(markup).toMatch(/<span data-model-account-compact="true" class="hidden max-w-20 truncate @max-4xl\/chathead:inline">Work<\/span><span class="[^"]*@max-4xl\/chathead:hidden"/);
- expect(markup).not.toContain("@max-4xl/chathead:size-[30px]");
+ expect(markup).not.toContain("@max-4xl/chathead:size-9");
});
});
diff --git a/src/components/ModelPicker.tsx b/src/components/ModelPicker.tsx
index adf00468c1..f1853da0ea 100644
--- a/src/components/ModelPicker.tsx
+++ b/src/components/ModelPicker.tsx
@@ -24,7 +24,7 @@ import { cn } from "@/lib/cn";
import { useMenuMotion } from "./MenuMotion";
import { SimpleModelMenu, type SimpleThinking } from "./SimpleModelMenu";
import { apiKeysLabel, ClaudeAccountSelect, engineStatus, FollowBotModelRow, ModelEngineRail, ModelRow, ModelSearch } from "./ModelPickerFull";
-import { MENU_LABEL, MENU_LINE, MENU_ROW, MENU_SEPARATOR, MENU_STROKE, MENU_TRAILING } from "./menu-recipe";
+import { MENU_LABEL, MENU_LINE, MENU_ROW, MENU_SEPARATOR, MENU_TRAILING } from "./menu-recipe";
import { modelMenuKey, modelMenuPointerMove } from "./model-menu-keys";
import { lockedWhileBusy, offersReasoning, useRefocusAfterPick, variantChoices, variantLabel } from "./model-picker-reasoning";
import { BusyModelMenu } from "./ModelPickerBusyMenu";
@@ -606,7 +606,7 @@ export function ModelPicker({
<button
{...triggerProps}
className={cn(
- "group flex items-center gap-1.5 rounded-full py-1 pl-2 pr-2.5 text-[13px] text-ink disabled:cursor-not-allowed",
+ cn("group flex items-center gap-1.5 rounded-full pl-2 pr-2.5 text-[13px] text-ink disabled:cursor-not-allowed", contained ? "py-1" : "h-9"),
contained
? "hover:bg-ink/[0.06] aria-expanded:bg-ink/[0.08] disabled:opacity-50 disabled:hover:bg-transparent"
: cn(ELEVATED_FLOAT, ELEVATED_HOVER, "disabled:text-ink-tertiary disabled:hover:bg-composer"),
@@ -655,7 +655,7 @@ export function ModelPicker({
contained
? "min-w-0 max-w-[72%] transition-colors duration-150 hover:bg-ink/[0.06] hover:text-ink aria-expanded:bg-ink/[0.08] aria-expanded:text-ink disabled:hover:bg-transparent"
: cn("shrink-0", ELEVATED_FLOAT, ELEVATED_HOVER, "hover:text-ink aria-expanded:text-ink disabled:hover:bg-composer"),
- size === "sm" ? "h-7 pl-2 pr-1.5" : "h-8 pl-2.5 pr-2",
+ size === "sm" ? "h-7 pl-2 pr-1.5" : contained ? "h-8 pl-2.5 pr-2" : "h-9 pl-3 pr-2.5",
)}
>
<span className="relative mr-1.5 flex shrink-0 group-disabled:opacity-50">
@@ -688,7 +688,7 @@ export function ModelPicker({
{fullView && !advanced && (
<div className="shrink-0 border-b-[0.5px] border-ink/10 p-1.5">
<button type="button" data-menu-row data-model-back onClick={(event) => backToList(event.detail === 0)} className={cn(MENU_ROW, "text-ink-secondary hover:text-ink")}>
- <ChevronLeft size={16} strokeWidth={MENU_STROKE} className="shrink-0 rtl:-scale-x-100" aria-hidden="true" />
+ <ChevronLeft size={16} className="shrink-0 rtl:-scale-x-100" aria-hidden="true" />
<span className="min-w-0 flex-1 truncate">{t("model.simple.back")}</span>
</button>
</div>
@@ -739,7 +739,7 @@ export function ModelPicker({
{loadingInstances || refreshingId !== null ? (
<Loader2 size={14} className="animate-spin" aria-hidden="true" />
) : (
- <RefreshCw size={14} strokeWidth={MENU_STROKE} aria-hidden="true" />
+ <RefreshCw size={14} aria-hidden="true" />
)}
</button>
<span
@@ -778,7 +778,7 @@ export function ModelPicker({
}}
className={cn(MENU_ROW, "text-ink-secondary hover:text-ink")}
>
- <ChevronLeft size={16} strokeWidth={MENU_STROKE} className="shrink-0 rtl:-scale-x-100" aria-hidden="true" />
+ <ChevronLeft size={16} className="shrink-0 rtl:-scale-x-100" aria-hidden="true" />
<span className="min-w-0 flex-1 truncate">{t("model.backTo", { name: engineDisplayName(railInstance) })}</span>
</button>
</div>
@@ -847,13 +847,13 @@ export function ModelPicker({
{!query && !showAll && official.length > compactOfficial.length && (
<button type="button" data-menu-row onClick={() => setShowAll(true)} className={cn(MENU_ROW, "text-ink-secondary hover:text-ink")}>
<span className="min-w-0 flex-1 truncate">{t("model.showAll", { count: official.length })}</span>
- <ChevronDown size={16} strokeWidth={MENU_STROKE} className={MENU_TRAILING} aria-hidden="true" />
+ <ChevronDown size={16} className={MENU_TRAILING} aria-hidden="true" />
</button>
)}
{!query && showAll && official.length > COMPACT_MODEL_COUNT && (
<button type="button" data-menu-row onClick={() => setShowAll(false)} className={cn(MENU_ROW, "text-ink-secondary hover:text-ink")}>
<span className="min-w-0 flex-1 truncate">{t("model.showSuggested")}</span>
- <ChevronUp size={16} strokeWidth={MENU_STROKE} className={MENU_TRAILING} aria-hidden="true" />
+ <ChevronUp size={16} className={MENU_TRAILING} aria-hidden="true" />
</button>
)}
</>
@@ -911,7 +911,7 @@ export function ModelPicker({
{custom.length > 0 && (
<span className="text-[12px] leading-4 text-ink-tertiary">{t("model.available", { count: custom.length })}</span>
)}
- <ChevronRight size={16} strokeWidth={MENU_STROKE} className={MENU_TRAILING} aria-hidden="true" />
+ <ChevronRight size={16} className={MENU_TRAILING} aria-hidden="true" />
</span>
</button>
)}
@@ -927,7 +927,7 @@ export function ModelPicker({
</button>
<button type="button" data-model-add-api-keys onClick={openApiKeys}
className="flex h-7 shrink-0 items-center gap-1.5 rounded-md px-2 text-[12px] leading-4 text-ink-secondary hover:bg-ink/[0.06] hover:text-ink">
- <KeyRound size={14} strokeWidth={MENU_STROKE} aria-hidden="true" />
+ <KeyRound size={14} aria-hidden="true" />
{apiKeysLabel(pickerInstances)}
</button>
</div>
diff --git a/src/components/ModelPickerFull.tsx b/src/components/ModelPickerFull.tsx
index 25c50395e7..bcfddbef60 100644
--- a/src/components/ModelPickerFull.tsx
+++ b/src/components/ModelPickerFull.tsx
@@ -6,7 +6,7 @@ import { cn } from "@/lib/cn";
import { t } from "@/lib/i18n";
import { InstanceProviderMark } from "./ProviderIcons";
import { hasSavedApiKey, needsCli, needsSignIn } from "./EngineSetup";
-import { MENU_META, MENU_ROW, MENU_STROKE } from "./menu-recipe";
+import { MENU_META, MENU_ROW } from "./menu-recipe";
import { Select } from "./Select";
type ModelOption = InstanceInfo["models"]["options"][number];
@@ -81,7 +81,7 @@ export function FollowBotModelRow({ name, model, follows, onPick }: { name: stri
export function ModelSearch({ value, onChange, local }: { value: string; onChange: (value: string) => void; local: boolean }) {
return (
<div className="group/search flex h-9 shrink-0 items-center gap-2 border-b-[0.5px] border-ink/10 px-3.5">
- <Search size={16} strokeWidth={MENU_STROKE} className="shrink-0 text-ink-tertiary group-focus-within/search:text-ink-secondary" aria-hidden="true" />
+ <Search size={16} className="shrink-0 text-ink-tertiary group-focus-within/search:text-ink-secondary" aria-hidden="true" />
<input
data-menu-search
value={value}
@@ -179,7 +179,7 @@ export function ModelEngineRail({ instances, selectedInstance, claudeInstance, o
title={apiKeysLabel(instances)}
className="flex size-9 shrink-0 items-center justify-center rounded-[8px] border border-dashed border-ink/20 text-ink-tertiary hover:bg-ink/[0.06] hover:text-ink"
>
- <Plus size={16} strokeWidth={MENU_STROKE} aria-hidden="true" />
+ <Plus size={16} aria-hidden="true" />
</button>
)}
{local.length > 0 && <div className={cn(RAIL_LABEL, "pt-2")}>{t("model.rail.local")}</div>}
diff --git a/src/components/NotificationsPanel.tsx b/src/components/NotificationsPanel.tsx
index 216fa70148..25abf598b3 100644
--- a/src/components/NotificationsPanel.tsx
+++ b/src/components/NotificationsPanel.tsx
@@ -80,7 +80,7 @@ export function NotificationBell({ bar }: { bar?: string }) {
aria-pressed={state.notificationsOpen}
className={cn("relative", bar ?? "flex size-8 items-center justify-center rounded-md text-ink-secondary hover:bg-raised hover:text-ink", bar && state.notificationsOpen && "text-accent hover:text-accent")}
>
- <Bell size={bar ? 15 : 17} strokeWidth={bar ? 1.75 : undefined} aria-hidden="true" />
+ <Bell size={bar ? 15 : 17} aria-hidden="true" />
{unread > 0 && (
<span className={cn("absolute flex items-center justify-center rounded-full bg-accent font-semibold text-accent-ink", bar ? "-right-1 -top-0.5 h-[13px] min-w-[13px] px-0.5 text-[9px]" : "-right-0.5 -top-0.5 h-[15px] min-w-[15px] px-1 text-[10px]")}>
{unread > 99 ? "99+" : unread}
diff --git a/src/components/PairedPhones.tsx b/src/components/PairedPhones.tsx
index e1ae9886ac..7dbb42a6fa 100644
--- a/src/components/PairedPhones.tsx
+++ b/src/components/PairedPhones.tsx
@@ -48,7 +48,7 @@ export function PhoneRow({ device, connected, state, c, onRemoved, onPairAgain,
<li data-phone-row={device.id}>
<div className="flex min-h-16 items-center gap-3 px-4 py-3">
<span className="flex size-8 shrink-0 items-center justify-center rounded-full bg-ink/[0.05] text-ink-secondary" title={phoneSubtitle(device, connected, e2eEnabled)}>
- <Smartphone size={18} strokeWidth={1.75} aria-hidden="true" />
+ <Smartphone size={18} aria-hidden="true" />
</span>
<div className="min-w-0 flex-1">
<div className="truncate text-[14px] leading-5 text-ink">{device.name}</div>
diff --git a/src/components/PinnedMessagesMenu.tsx b/src/components/PinnedMessagesMenu.tsx
index bd9d2383fd..0aa32c7fc8 100644
--- a/src/components/PinnedMessagesMenu.tsx
+++ b/src/components/PinnedMessagesMenu.tsx
@@ -85,7 +85,7 @@ export function PinnedMessagesMenu({ pins, onJump, onUnpin, triggerClassName }:
title={t("chat.pinnedMessages")}
aria-haspopup="menu"
aria-expanded={open}
- className={cn("flex size-8 items-center justify-center rounded-full text-ink-secondary hover:text-ink aria-expanded:text-accent", triggerClassName)}
+ className={cn("flex size-9 items-center justify-center rounded-full text-ink-secondary hover:text-ink aria-expanded:text-accent", triggerClassName)}
>
<Pin size={16} />
</button>
diff --git a/src/components/PlacesRail.tsx b/src/components/PlacesRail.tsx
index 7b3f1c3bec..f5bc92c8a7 100644
--- a/src/components/PlacesRail.tsx
+++ b/src/components/PlacesRail.tsx
@@ -109,7 +109,7 @@ export function PlaceMark({ place, size = TILE }: { place: MarkedPlace; size?: n
return <span aria-hidden="true" data-rail-offline={place.offline ? "" : undefined} data-rail-ended={place.ended ? "" : undefined}
className={cn("grid shrink-0 place-items-center font-semibold leading-none", color ? "text-white" : "bg-card text-ink", (place.offline || place.ended) && "opacity-55 grayscale")}
style={{ width: size, height: size, borderRadius: tileRadius(size), fontSize: Math.round(size * 0.4), ...(color ? { background: cloudColorFill(color) } : {}) }}>
- {place.kind === "computer" && !place.named ? <Laptop size={Math.round(size * 0.46)} strokeWidth={1.75} /> : place.kind === "account" ? <UserRound size={Math.round(size * 0.5)} strokeWidth={1.75} /> : placeInitials(place.name)}
+ {place.kind === "computer" && !place.named ? <Laptop size={Math.round(size * 0.46)} /> : place.kind === "account" ? <UserRound size={Math.round(size * 0.5)} /> : placeInitials(place.name)}
</span>;
}
diff --git a/src/components/ReplyQuote.tsx b/src/components/ReplyQuote.tsx
index 111aa98f43..3ff2c6345f 100644
--- a/src/components/ReplyQuote.tsx
+++ b/src/components/ReplyQuote.tsx
@@ -22,7 +22,7 @@ export function ReplyQuote({
const name = replyAuthor(message, fallbackName);
const body = (
<>
- <Reply size={compact ? 14 : 15} strokeWidth={1.5} aria-hidden="true" className="shrink-0 rtl:-scale-x-100" />
+ <Reply size={compact ? 14 : 15} aria-hidden="true" className="shrink-0 rtl:-scale-x-100" />
<span className="sr-only">{t("chat.reply.replyingTo", { name })}: </span>
<span aria-hidden="true" className="shrink-0 font-medium text-ink">{name}</span>
<span dir="auto" className="min-w-0 flex-1 truncate">{replySnippet(peerLine(message)?.body ?? message.text ?? "")}</span>
@@ -42,7 +42,7 @@ export function ReplyQuote({
)}
{onClear && (
<button type="button" onClick={onClear} aria-label={t("chat.reply.cancel")} className="inline-flex size-6 shrink-0 items-center justify-center rounded-full text-ink-tertiary hover:bg-ink/10 hover:text-ink focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus">
- <X size={14} strokeWidth={1.5} aria-hidden="true" />
+ <X size={14} aria-hidden="true" />
</button>
)}
</div>
@@ -68,7 +68,7 @@ export function ComposerReplyStrip({
data-composer-reply=""
className="mb-1 flex min-w-0 items-center gap-2 rounded-2xl bg-ink/[0.06] py-1.5 ps-3 pe-1.5 text-[13px] leading-5 text-ink-secondary"
>
- <Reply size={15} strokeWidth={1.5} aria-hidden="true" className="shrink-0 rtl:-scale-x-100" />
+ <Reply size={15} aria-hidden="true" className="shrink-0 rtl:-scale-x-100" />
<span className="sr-only">{who}: </span>
<span dir="auto" className="min-w-0 flex-1 truncate">{excerpt}</span>
{onClear && (
@@ -79,7 +79,7 @@ export function ComposerReplyStrip({
title={t("chat.reply.cancel")}
className="inline-flex size-6 shrink-0 items-center justify-center rounded-full text-ink-tertiary hover:bg-ink/10 hover:text-ink focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus"
>
- <X size={14} strokeWidth={1.5} aria-hidden="true" />
+ <X size={14} aria-hidden="true" />
</button>
)}
</div>
diff --git a/src/components/RoomHeader.tsx b/src/components/RoomHeader.tsx
index 8e0d82bca7..a41a0f3f57 100644
--- a/src/components/RoomHeader.tsx
+++ b/src/components/RoomHeader.tsx
@@ -242,12 +242,12 @@ export function RoomHeader({
aria-label={t("chat.find")}
aria-pressed={findOpen}
className={cn(
- "flex size-8 items-center justify-center rounded-full transition-colors hover:bg-ink/[0.06]",
+ "flex size-9 items-center justify-center rounded-full transition-colors hover:bg-ink/[0.06]",
findOpen ? "text-accent" : "text-ink-secondary hover:text-ink",
)}
title={t("chat.findShortcut")}
>
- <Search size={18} />
+ <Search size={16} />
</button>
<ExportTranscriptMenu
title={group.name}
diff --git a/src/components/RoomTextMessage.tsx b/src/components/RoomTextMessage.tsx
index ccae3aac55..81a8a3d91d 100644
--- a/src/components/RoomTextMessage.tsx
+++ b/src/components/RoomTextMessage.tsx
@@ -197,7 +197,7 @@ export const RoomTextMessage = memo(function RoomTextMessage({
}}
/>}
{m.via === "api" && (
- <div className="mt-1 text-[11px] text-ink-secondary">{t("room.viaApi")}</div>
+ <div className="mt-1 text-[12px] leading-4 text-ink-secondary">{t("room.viaApi")}</div>
)}
{collapsible && (
<button type="button" onClick={() => setExpanded(true)} className="mt-1 text-[13px] text-ink-secondary hover:text-ink">
@@ -233,7 +233,7 @@ export const RoomTextMessage = memo(function RoomTextMessage({
)}
</div>
{!tabled && botActions}
- <span className="self-end pb-1 text-[11px] tabular-nums text-ink-tertiary opacity-0 transition-opacity group-hover:opacity-100">
+ <span className="self-end pb-1 text-[12px] font-medium leading-4 tabular-nums whitespace-nowrap text-ink-tertiary opacity-0 transition-opacity group-hover:opacity-100">
{formatTime(m.at)}
</span>
</div>
diff --git a/src/components/ServerList.tsx b/src/components/ServerList.tsx
index 3996be0047..aacbaf5aa9 100644
--- a/src/components/ServerList.tsx
+++ b/src/components/ServerList.tsx
@@ -110,7 +110,7 @@ export function ServerList({ saved, busy, sharingOffered, ownServers = [], appVe
<div className="flex min-h-10 items-center gap-3">
{/* A place shows the same mark as on the rail, in the nav and on Phone & devices: its 24 px badge. */}
{entry.id === "local"
- ? <span className="flex size-8 shrink-0 items-center justify-center rounded-full bg-ink/[0.05] text-ink-secondary"><Laptop size={18} strokeWidth={1.75} aria-hidden="true" /></span>
+ ? <span className="flex size-8 shrink-0 items-center justify-center rounded-full bg-ink/[0.05] text-ink-secondary"><Laptop size={18} aria-hidden="true" /></span>
: <span className="flex size-8 shrink-0 items-center justify-center"><PlaceBadge place={{ kind: entry.home || entry.cloud ? "cloud" : "server", name: entry.name, color: entry.color ?? null, named: true }} size={24} /></span>}
<div className="min-w-0 flex-1">
<div className="flex items-center gap-1.5 truncate text-[14px] leading-5 text-ink">{entry.name}</div>
@@ -129,7 +129,7 @@ export function ServerList({ saved, busy, sharingOffered, ownServers = [], appVe
{showUpdate && <div className="pl-11"><UpdateNote name={entry.name} status={status!} appVersion={appVersion!} onHide={() => setHidden((list) => [...list, `${entry.id}:${status!.version}`])} /></div>}
</div>;
})}
- <SettingsLinkRow title={t("connect.title")} leading={<span className="flex size-8 items-center justify-center rounded-full bg-ink/[0.05] text-ink-secondary"><Plus size={18} strokeWidth={1.75} aria-hidden="true" /></span>}
+ <SettingsLinkRow title={t("connect.title")} leading={<span className="flex size-8 items-center justify-center rounded-full bg-ink/[0.05] text-ink-secondary"><Plus size={18} aria-hidden="true" /></span>}
onClick={() => { if (!busy) setSheet({ address: "", locked: false, title: t("connect.title") }); }} data={{ "data-server-connect": "" }} />
</SettingsRows>
{sheet && <RailSheet focusKey={sheet.locked ? "pair-again" : "connect"} onClose={() => setSheet(null)}>
diff --git a/src/components/ServerPairingCard.tsx b/src/components/ServerPairingCard.tsx
index a18c03b414..890d63ffcc 100644
--- a/src/components/ServerPairingCard.tsx
+++ b/src/components/ServerPairingCard.tsx
@@ -299,7 +299,7 @@ export function ServerPairingCard({ initialSession = null, initialPairingCodes =
<SettingsRows icons>
{listed.map((device) => (
<div key={device.id} className="flex min-h-16 items-center gap-3 px-4 py-3" data-paired-device={device.id}>
- <span className="flex size-8 shrink-0 items-center justify-center rounded-full bg-ink/[0.05] text-ink-secondary"><Smartphone size={18} strokeWidth={1.75} aria-hidden="true" /></span>
+ <span className="flex size-8 shrink-0 items-center justify-center rounded-full bg-ink/[0.05] text-ink-secondary"><Smartphone size={18} aria-hidden="true" /></span>
<span className="flex min-w-0 flex-1 flex-col gap-0.5">
<span className="truncate text-[14px] leading-5 text-ink">{device.person ?? device.label}</span>
<span className="truncate text-[13px] leading-[18px] text-ink-secondary">
diff --git a/src/components/Sidebar.simple-layout.test.ts b/src/components/Sidebar.simple-layout.test.ts
index f8e1e3f259..c1bca0da49 100644
--- a/src/components/Sidebar.simple-layout.test.ts
+++ b/src/components/Sidebar.simple-layout.test.ts
@@ -262,13 +262,13 @@ describe("Simple-mode sidebar layout", () => {
expect(listedBots(render().tree)).toHaveLength(3);
});
- it("opens at 280px in Simple and 320px in Advanced, each remembering its own resized width", () => {
+ it("opens at 280px in Simple and in Advanced, each remembering its own resized width", () => {
const width = () => render().root.props.style!["--sidebar-width"];
expect(width()).toBe("280px");
expect(render().root.props.className).toContain("w-[280px]");
fixture.values = [];
fixture.advanced = true;
- expect(width()).toBe("320px");
+ expect(width()).toBe("280px");
fixture.storage.set(SIDEBAR_WIDTH_KEY, "360");
fixture.storage.set(SIMPLE_SIDEBAR_WIDTH_KEY, "300");
fixture.values = [];
diff --git a/src/components/Sidebar.simple-mode.test.ts b/src/components/Sidebar.simple-mode.test.ts
index cfa812bcf4..c0c0a0eeba 100644
--- a/src/components/Sidebar.simple-mode.test.ts
+++ b/src/components/Sidebar.simple-mode.test.ts
@@ -89,7 +89,7 @@ describe("bot-first sidebar", () => {
{ advanced: true, enabled: true, density: "comfortable", size: 32, spacing: ["gap-2", "py-2", "pl-6"] },
{ advanced: true, enabled: true, density: "icons", size: 44, spacing: ["justify-center", "px-1", "py-1.5"] },
{ advanced: true, enabled: false, density: "comfortable", size: 44, spacing: ["gap-3", "py-2", "pl-2.5", "pr-9"] },
- { advanced: false, enabled: false, density: "comfortable", size: 42, spacing: ["gap-2", "rounded-[8px]", "pl-2", "pr-2", "md:h-[54px]"] },
+ { advanced: false, enabled: false, density: "comfortable", size: 42, spacing: ["gap-2.5", "rounded-xl", "p-2", "md:h-[54px]"] },
{ advanced: false, enabled: false, density: "icons", size: 36, spacing: ["h-[54px]", "justify-center"] },
] as const)("sizes bot portraits and row spacing in $density density with threads $enabled (advanced $advanced)", ({ advanced, enabled, density, size, spacing }) => {
fixture.advanced = advanced;
@@ -128,12 +128,12 @@ describe("bot-first sidebar", () => {
});
}
- it.each([false, true])("uses 14px medium names in Simple comfortable rows and keeps 15px semibold otherwise (advanced %s)", (advanced) => {
+ it.each([false, true])("uses 14px medium names in comfortable rows in both modes (advanced %s)", (advanced) => {
fixture.advanced = advanced;
fixture.showThreads = false;
const markup = renderToStaticMarkup(createElement(BotListItem, rowProps("comfortable", { ...bot, tasks: [], projects: [] })));
const name = markup.match(/<span class="flex min-w-0 grow items-center gap-1\.5 truncate text-ink ([^"]*)"/)?.[1];
- expect(name).toBe(advanced ? "text-[15px] font-semibold leading-5" : "text-[14px] font-medium leading-5");
+ expect(name).toBe("text-[14px] font-medium leading-5");
expect(markup).toContain("truncate text-[13px] leading-[18px]");
});
@@ -302,11 +302,11 @@ describe("bot-first sidebar", () => {
});
it.each([
- { advanced: false, density: "comfortable", slot: "size-9", spacing: ["gap-2", "rounded-[8px]", "pl-2", "pr-2", "md:h-[54px]"], name: "font-medium", preview: "text-[13px]" },
- { advanced: false, density: "icons", slot: "size-9", spacing: ["h-[54px]", "justify-center"], name: "font-semibold", preview: "text-[11px]" },
- { advanced: true, density: "icons", slot: "size-12", spacing: ["justify-center", "px-1", "py-1.5"], name: "font-semibold", preview: "text-[11px]" },
- { advanced: true, density: "comfortable", slot: "size-8", spacing: ["gap-2", "py-1.5", "pl-6", "pr-9"], name: "font-semibold", preview: "text-[11px]" },
- ] as const)("sizes group chat rows in $density density (advanced $advanced)", ({ advanced, density, slot, spacing, name, preview }) => {
+ { advanced: false, density: "comfortable", slot: "size-9", spacing: ["gap-2.5", "rounded-xl", "pl-2", "pr-2", "md:h-[54px]"] },
+ { advanced: false, density: "icons", slot: "size-9", spacing: ["h-[54px]", "justify-center"] },
+ { advanced: true, density: "icons", slot: "size-12", spacing: ["justify-center", "px-1", "py-1.5"] },
+ { advanced: true, density: "comfortable", slot: "size-8", spacing: ["gap-2", "py-1.5", "pl-6", "pr-9"] },
+ ] as const)("sizes group chat rows in $density density (advanced $advanced), names at 14/20 medium and previews at 13/18", ({ advanced, density, slot, spacing }) => {
fixture.advanced = advanced;
const group: Group = { id: "room", threadId: "room-thread", name: "Launch", memberIds: [bot.id], messages: [], defaultResponder: { kind: "mentions" }, bulletin: "", unread: false, createdAt: 1 };
let tree: ReactNode;
@@ -315,8 +315,8 @@ describe("bot-first sidebar", () => {
const row = findElement(tree, "data-sidebar-group-row", group.id)!;
expect(String(row.props.className).split(" ")).toEqual(expect.arrayContaining([...spacing]));
expect(markup).toMatch(new RegExp(`data-room-mark="" class="[^"]*\\b${slot}\\b[^"]*"><svg[^>]*width="16" height="16"`));
- expect(markup).toMatch(new RegExp(`truncate text-\\[14px\\] text-ink ${name}`));
- expect(markup).toContain(`truncate text-ink-secondary ${preview}`);
+ expect(markup).toContain("truncate text-[14px] font-medium leading-5 text-ink");
+ expect(markup).toContain("truncate text-[13px] leading-[18px] text-ink-secondary");
});
it("keeps the queued dot small", () => {
diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsx
index c5f29f4a99..936d0cb103 100644
--- a/src/components/Sidebar.tsx
+++ b/src/components/Sidebar.tsx
@@ -187,8 +187,8 @@ export const GroupListItem = memo(function GroupListItem({
className={cn(
"relative flex w-full items-center rounded-md text-left", SIMPLE_ROW_FOCUS,
density === "icons" ? (railTile ? "h-[54px] justify-center" : "justify-center px-1 py-1.5") : simpleRow
- ? cn("gap-2 rounded-[8px] py-2 pr-2 group-hover:pr-9 group-focus-within:pr-9 max-md:pr-9 touch:pr-9 md:h-[54px] md:py-0", !group.dm && hasThreadList ? "pl-6" : "pl-2") : "gap-2 py-1.5 pl-6 pr-9",
- selected && !expanded ? rowSelectedSurface : "hover:bg-raised/50",
+ ? cn("gap-2.5 rounded-xl py-2 pr-2 group-hover:pr-9 group-focus-within:pr-9 max-md:pr-9 touch:pr-9 md:h-[54px] md:py-0", !group.dm && hasThreadList ? "pl-6" : "pl-2") : "gap-2 py-1.5 pl-6 pr-9",
+ selected && !expanded ? rowSelectedSurface : "hover:bg-ink/[0.06]",
)}
title={density === "icons" ? group.name : undefined}
aria-label={density === "icons" ? group.name : undefined}
@@ -196,13 +196,13 @@ export const GroupListItem = memo(function GroupListItem({
{group.dm ? <StackedMauses members={members} density={railTile ? "comfortable" : density} large={simpleRow || railTile} /> : <RoomMark density={railTile ? "comfortable" : density} large={simpleRow || railTile} />}
<div className={cn("min-w-0 flex-1", density === "icons" && "hidden")}>
<div className={cn("flex items-baseline justify-between gap-2", simpleRow && "pr-7")}>
- <span className={cn("truncate text-[14px] text-ink", simpleRow ? "font-medium leading-5" : "font-semibold")}>{group.name}</span>
- {advanced && selected && last && !expanded && <span className="shrink-0 text-[10px] text-ink-secondary">{formatTime(last.at)}</span>}
+ <span className="truncate text-[14px] font-medium leading-5 text-ink">{group.name}</span>
+ {advanced && selected && last && !expanded && <span className="shrink-0 text-[12px] font-medium leading-4 text-ink-secondary">{formatTime(last.at)}</span>}
{!simpleRow && expanded && group.unread && <span className="size-1.5 shrink-0 rounded-full bg-accent" aria-label={t("task.unreadMany")} />}
{simpleRow && !expanded && group.unread && <RowDot />}
</div>
{!expanded && <div className="flex items-center justify-between gap-2">
- <span className={cn("truncate text-ink-secondary", simpleRow ? "text-[13px] leading-[18px]" : "text-[11px]")}>{group.description || groupPreview(group, bots, instances, advanced)}</span>
+ <span className="truncate text-[13px] leading-[18px] text-ink-secondary">{group.description || groupPreview(group, bots, instances, advanced)}</span>
{!simpleRow && group.unread && <span className="size-2 shrink-0 rounded-full bg-accent" />}
</div>}
{simpleRow && <RowStatusText unread={group.unread} />}
@@ -217,7 +217,7 @@ export const GroupListItem = memo(function GroupListItem({
</button>}
{!group.dm && density !== "icons" && <button type="button" disabled={roomBusy} aria-label={t("task.newShort")} title={t(roomBusy ? "task.newBusy" : "task.newShort")}
onClick={() => { setThreadsOpen(true); dispatch({ type: "newGroupTask", groupId: group.id }); }}
- className="pointer-events-none absolute right-1 top-1/2 flex size-7 -translate-y-1/2 items-center justify-center rounded text-ink-secondary opacity-0 hover:bg-raised hover:text-ink disabled:opacity-40 group-hover:pointer-events-auto group-hover:opacity-100 group-focus-within:pointer-events-auto group-focus-within:opacity-100 max-md:pointer-events-auto max-md:opacity-70 touch:pointer-events-auto touch:opacity-70 touch:disabled:opacity-40"><Plus size={14} /></button>}
+ className="pointer-events-none absolute right-1 top-1/2 flex size-7 -translate-y-1/2 items-center justify-center rounded text-ink-secondary opacity-0 hover:bg-raised hover:text-ink disabled:opacity-40 group-hover:pointer-events-auto group-hover:opacity-100 group-focus-within:pointer-events-auto group-focus-within:opacity-100 max-md:pointer-events-auto max-md:opacity-70 touch:pointer-events-auto touch:opacity-70 touch:disabled:opacity-40"><Plus size={16} /></button>}
</div>
{expanded && <GroupThreadList group={group} selected={selected} query={group.name.toLowerCase().includes(query.toLowerCase()) ? "" : query} />}
</>
@@ -601,8 +601,8 @@ export function BotThreadList({ bot, selected, query, pendingQueued, routineRuns
return next;
})} className="flex min-h-8 min-w-0 flex-1 cursor-grab select-none items-center gap-1.5 py-1 text-left text-[13px] font-semibold active:cursor-grabbing" title={project.name}>
<span className="truncate">{project.name}</span>
- <span className="shrink-0 text-[10px] font-normal opacity-50">{projectTasks.length}</span>
- {!open && (waiting ? <span className="text-[10px] text-warning">{t("task.waiting")}</span> : working ? <Loader2 size={10} className="shrink-0 animate-spin text-success" /> : projectTasks.some((task) => task.unread) ? <span className="size-1.5 shrink-0 rounded-full bg-accent" aria-label={t("task.unreadMany")} /> : null)}
+ <span className="shrink-0 text-[12px] font-normal opacity-50">{projectTasks.length}</span>
+ {!open && (waiting ? <span className="text-[12px] text-warning">{t("task.waiting")}</span> : working ? <Loader2 size={10} className="shrink-0 animate-spin text-success" /> : projectTasks.some((task) => task.unread) ? <span className="size-1.5 shrink-0 rounded-full bg-accent" aria-label={t("task.unreadMany")} /> : null)}
</button>
<button type="button" title={t("task.newIn", { name: project.name })} aria-label={t("task.newIn", { name: project.name })} onClick={() => dispatch({ type: "newTask", botId: bot.id, projectId: project.id })}
className="flex size-6 items-center justify-center rounded opacity-0 hover:bg-raised hover:text-ink focus-visible:opacity-100 group-hover/folder:opacity-100 max-md:opacity-70 touch:opacity-70"><Plus size={12} /></button>
@@ -613,7 +613,7 @@ export function BotThreadList({ bot, selected, query, pendingQueued, routineRuns
</div>
{(open || visible.some((task) => task.pinned === true)) && <div role="group" aria-label={t("task.namedList", { name: project.name })}>
{(open ? visible : visible.filter((task) => task.pinned === true)).map(renderThread)}
- {projectTasks.length === 0 && <p className="px-2.5 py-1 text-[11px] text-ink-tertiary">{t("task.empty")}</p>}
+ {projectTasks.length === 0 && <p className="px-2.5 py-1 text-[12px] leading-4 text-ink-tertiary">{t("task.empty")}</p>}
{/* A closed folder shows only its pinned threads. The short list keeps only the newest threads, so an open folder can hold none of them: offer the rest. */}
{open && !query && !bulk.active && visible.length < projectTasks.length && <button type="button" data-sidebar-folder-show-all={project.id} onClick={() => setShowAll(true)}
className="inline-flex h-7 items-center pl-6 text-[13px] font-medium leading-4 text-ink-secondary hover:text-ink">{t("folder.showAll")}</button>}
@@ -624,7 +624,7 @@ export function BotThreadList({ bot, selected, query, pendingQueued, routineRuns
<span role="status" className="sr-only">{reorderStatus}</span>
{readError && <p role="alert" className="px-2.5 py-1 text-[12px] text-danger">{readError}</p>}
<span role="status" className="sr-only">{readStatus}</span>
- {projects.length > 0 && ungrouped.length > 0 && <div className="pl-6 pr-3 pb-1 pt-2 text-[11px] text-ink-tertiary">{t("task.list")}</div>}
+ {projects.length > 0 && ungrouped.length > 0 && <div className="pl-6 pr-3 pb-1 pt-2 text-[12px] leading-4 text-ink-tertiary">{t("task.list")}</div>}
{ungrouped.map(renderThread)}
<HelperThreadGroup tasks={orderedThreadList(helpers)} renderThread={renderThread} />
<ThreadListFooter bulk={bulk} rows={shownRows} selected={selection} total={ownTasks.length} canShowAll={!query && !showAll && ownTasks.length > visibleTasks.length} canSelect={tasks.length > 1}
@@ -722,10 +722,10 @@ export const BotListItem = memo(function BotListItem(props: BotRowProps) {
"flex w-full items-center rounded-xl text-left transition-colors duration-150", SIMPLE_ROW_FOCUS,
iconOnly
? railTile ? "h-[54px] justify-center" : "justify-center px-1 py-1.5"
- : simpleRow ? "gap-2 rounded-[8px] py-2 pl-2 pr-2 md:h-[54px] md:py-0"
+ : simpleRow ? "gap-2.5 rounded-xl p-2 md:h-[54px] md:py-0"
: cn(showThreads ? "gap-2 py-2" : "gap-3 py-2", showThreads ? "pl-6 pr-9 group-hover:pr-[5.75rem] group-focus-within:pr-[5.75rem] max-md:pr-9 touch:pr-[5.75rem]" : "pl-2.5 pr-9"),
!iconOnly && "max-md:rounded-2xl max-md:py-2.5",
- selected ? rowSelectedSurface : "hover:bg-raised/50",
+ selected ? rowSelectedSurface : "hover:bg-ink/[0.06]",
simpleRow && rowSurface(selected),
);
const { waiting, working, failed, teammateWait, queued } = sidebarBotStatus(bot, pendingQueued, visible);
@@ -774,7 +774,7 @@ export const BotListItem = memo(function BotListItem(props: BotRowProps) {
</span>
<div className={cn("min-w-0 flex-1", iconOnly && "hidden")}>
<div className={cn("flex items-baseline justify-between gap-2", simpleRow && "pe-7 group-hover:pe-[3.25rem] group-focus-within:pe-[3.25rem] touch:pe-[3.25rem] max-md:touch:pe-7")}>
- <span className={cn("flex min-w-0 grow items-center gap-1.5 truncate text-ink", simpleRow ? "text-[14px] font-medium leading-5" : "text-[15px] font-semibold leading-5")}>
+ <span className={cn("flex min-w-0 grow items-center gap-1.5 truncate text-ink", "text-[14px] font-medium leading-5")}>
{!simpleList && bot.pinned && <Pin size={12} className="shrink-0 text-ink-secondary" />}
<RenameTitle
key={iconOnly ? "icons" : "expanded"}
@@ -792,7 +792,7 @@ export const BotListItem = memo(function BotListItem(props: BotRowProps) {
}}
onEditingChange={setRenaming}
className="truncate"
- inputClassName={cn("w-full rounded bg-inset px-1 py-0.5", simpleRow ? "text-[14px] font-medium" : "text-[15px] font-semibold")}
+ inputClassName={cn("w-full rounded bg-inset px-1 py-0.5", "text-[14px] font-medium")}
/>
{!simpleList && bot.chiefOfStaff && !renaming && (
<Crown size={13} strokeWidth={2.25} className="shrink-0 text-accent" role="img" aria-label={t("sidebar.bot.chiefOfStaff")} data-testid="chief-crown">
@@ -896,12 +896,12 @@ export const BotListItem = memo(function BotListItem(props: BotRowProps) {
)}
{!renaming && !deleting && !iconOnly && <>
{showThreads && <button type="button" aria-label={t("task.newShort")} title={t("task.newShort")} onClick={() => { setThreadsOpen(true); dispatch({ type: "newTask", botId: bot.id }); }}
- className="pointer-events-none absolute right-[3.75rem] top-1/2 flex size-7 -translate-y-1/2 items-center justify-center rounded text-ink-secondary opacity-0 hover:bg-raised hover:text-ink group-hover:pointer-events-auto group-hover:opacity-100 group-focus-within:pointer-events-auto group-focus-within:opacity-100 max-md:hidden touch:pointer-events-auto touch:opacity-70"><Plus size={14} /></button>}
+ className="pointer-events-none absolute right-[3.75rem] top-1/2 flex size-7 -translate-y-1/2 items-center justify-center rounded text-ink-secondary opacity-0 hover:bg-raised hover:text-ink group-hover:pointer-events-auto group-hover:opacity-100 group-focus-within:pointer-events-auto group-focus-within:opacity-100 max-md:hidden touch:pointer-events-auto touch:opacity-70"><Plus size={16} /></button>}
{showThreads && <button type="button" aria-label={t("folder.newNamed", { name: bot.name })} title={t("folder.new")} onClick={() => { setThreadsOpen(true); setCreatingProject(true); }}
- className="pointer-events-none absolute right-8 top-1/2 flex size-7 -translate-y-1/2 items-center justify-center rounded text-ink-secondary opacity-0 hover:bg-raised hover:text-ink group-hover:pointer-events-auto group-hover:opacity-100 group-focus-within:pointer-events-auto group-focus-within:opacity-100 max-md:hidden touch:pointer-events-auto touch:opacity-70"><FolderPlus size={14} /></button>}
+ className="pointer-events-none absolute right-8 top-1/2 flex size-7 -translate-y-1/2 items-center justify-center rounded text-ink-secondary opacity-0 hover:bg-raised hover:text-ink group-hover:pointer-events-auto group-hover:opacity-100 group-focus-within:pointer-events-auto group-focus-within:opacity-100 max-md:hidden touch:pointer-events-auto touch:opacity-70"><FolderPlus size={16} /></button>}
<button type="button" data-bot-actions={bot.id} aria-label={t("sidebar.bot.actions", { name: bot.name })} title={t("sidebar.bot.actions", { name: bot.name })} aria-haspopup="menu" onClick={(event) => { const rect = event.currentTarget.getBoundingClientRect(); onMenu({ botId: bot.id, x: rect.left, y: rect.bottom }); }}
className={cn("absolute top-1/2 flex size-7 -translate-y-1/2 items-center justify-center rounded text-ink-secondary hover:bg-raised hover:text-ink", simpleRow ? "end-[3px] top-1.5 size-6 translate-y-0 rounded-lg" : "right-1",
- selected && !simpleRow ? "pointer-events-auto opacity-100" : "pointer-events-none opacity-0 group-hover:pointer-events-auto group-hover:opacity-100 group-focus-within:pointer-events-auto group-focus-within:opacity-100 max-md:pointer-events-auto max-md:opacity-70 touch:pointer-events-auto touch:opacity-70")}><MoreHorizontal size={15} /></button>
+ selected && !simpleRow ? "pointer-events-auto opacity-100" : "pointer-events-none opacity-0 group-hover:pointer-events-auto group-hover:opacity-100 group-focus-within:pointer-events-auto group-focus-within:opacity-100 max-md:pointer-events-auto max-md:opacity-70 touch:pointer-events-auto touch:opacity-70")}><MoreHorizontal size={16} /></button>
</>}{!renaming && !deleting && simpleRow && <SidebarBotThreadsPeek bot={bot} onScreen={selected} dispatch={dispatch} />}
{deleting && iconOnly && (
<span className="pointer-events-none absolute bottom-1 right-1 rounded-full bg-card p-1 text-ink-secondary">
@@ -1151,7 +1151,7 @@ export const Sidebar = memo(function Sidebar({ open, onClose, collapseToIcons =
)}
title={remoteClient ? t("sidebar.new") : t("sidebar.newOrShare")}
>
- <Plus size={corner ? 18 : phone || simple || density === "icons" ? 20 : 18} strokeWidth={phone ? 2 : 1.5} />
+ <Plus size={phone || (density === "icons" && !rail) ? 20 : 16} />
</button>
{plusMotion.shown && (
<>
@@ -1236,11 +1236,11 @@ export const Sidebar = memo(function Sidebar({ open, onClose, collapseToIcons =
// The phone's list covers the whole screen: choosing the bot that is already open has to dismiss it too.
if (phone && open && event.target instanceof Element && !(event.target instanceof HTMLInputElement) && event.target.closest("[data-sidebar-bot-row], [data-sidebar-hero]")) onClose();
}}
- style={{ "--sidebar-width": `${sizing.width}px`, "--sidebar-max": sidePanelOpen ? advanced ? "320px" : "280px" : "calc(100vw - 320px)" } as CSSProperties}
+ style={{ "--sidebar-width": `${sizing.width}px`, "--sidebar-max": sidePanelOpen ? "280px" : "calc(100vw - 320px)" } as CSSProperties}
className={cn(
"relative flex h-full shrink-0 flex-col border-r-[0.5px] border-edge bg-panel max-md:[--scroll-fade-surface:var(--color-app)]",
sizing.resizing && !sizing.snapping ? "transition-none" : "transition-[width] duration-200 motion-reduce:transition-none",
- density === "icons" ? rail ? "w-[92px]" : "w-[80px]" : advanced ? "w-[320px] md:w-[var(--sidebar-width)]" : "w-[280px] md:w-[var(--sidebar-width)]",
+ density === "icons" ? rail ? "w-[92px]" : "w-[80px]" : "w-[280px] md:w-[var(--sidebar-width)]",
"md:max-w-[var(--sidebar-max)]",
// max-md: rather than an md: cancel: Tailwind v4 emits the native `translate`, and any value but `none` makes
// this a containing block for its `fixed` descendants.
@@ -1270,7 +1270,7 @@ export const Sidebar = memo(function Sidebar({ open, onClose, collapseToIcons =
) : null}{!phone && !framed && <ChromeRailToggle advanced={advanced} icons={density === "icons"} style={windowNoDragStyle} />}
{rail && <div data-sidebar-rail-top className="flex flex-col items-center gap-2 pt-1" style={windowNoDragStyle}>
<button type="button" onClick={railSearch} aria-label={t("sidebar.searchAria")} title={t("sidebar.searchAria")} className={SIMPLE_TOP_BUTTON}>
- <Search size={18} strokeWidth={1.5} aria-hidden="true" />
+ <Search size={16} aria-hidden="true" />
</button>
<div className="relative flex">{plusControl}</div>
</div>}
@@ -1284,7 +1284,7 @@ export const Sidebar = memo(function Sidebar({ open, onClose, collapseToIcons =
))}
{!rail && <div
data-sidebar-top-buttons
- className={cn("relative flex shrink-0 items-center", density === "icons" ? "flex-col gap-1" : corner ? "pointer-events-auto" : simpleDesk ? "gap-2" : simple ? "gap-1 pl-0.5" : "ml-0.5 gap-0.5")}
+ className={cn("relative flex shrink-0 items-center", density === "icons" ? "flex-col gap-1" : corner ? "pointer-events-auto" : simpleDesk ? "gap-2.5" : simple ? "gap-1 pl-0.5" : "ml-0.5 gap-0.5")}
style={windowNoDragStyle}
>
{simpleDesk && <SidebarSearchToggle ref={searchToggleRef} corner={corner} open={searchShown} onToggle={() => (searchShown ? closeSearch() : setSearchOpen(true))} />}
@@ -1295,7 +1295,7 @@ export const Sidebar = memo(function Sidebar({ open, onClose, collapseToIcons =
title={t("sidebar.searchAria")}
className="flex size-[46px] shrink-0 items-center justify-center rounded-xl text-ink-secondary hover:bg-raised hover:text-ink focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus"
>
- <Search size={20} strokeWidth={1.5} />
+ <Search size={20} />
</button>}
{advanced && inboxSupport === "no" && <SidebarActiveThreads entries={attention} icons={density === "icons"} phone={phone} dispatch={dispatch} />}
{plusControl}
@@ -1325,7 +1325,7 @@ export const Sidebar = memo(function Sidebar({ open, onClose, collapseToIcons =
className="max-h-[min(40vh,280px)] shrink-0 overflow-y-auto border-b border-hairline/40 px-2 pb-2"
>
{density !== "icons" && !pinnedCircles && (
- <div className="px-2 pb-1 pt-1 text-[11px] font-medium uppercase tracking-[0.08em] text-ink-secondary">
+ <div className="px-2 pb-1 pt-1 text-[12px] font-medium leading-4 text-ink-secondary">
{t("sidebar.section.pinned")}
</div>
)}
diff --git a/src/components/SidebarActiveThreads.tsx b/src/components/SidebarActiveThreads.tsx
index abb9210561..9cc4c13476 100644
--- a/src/components/SidebarActiveThreads.tsx
+++ b/src/components/SidebarActiveThreads.tsx
@@ -21,7 +21,7 @@ export function SidebarActiveThreads({ entries, icons, phone, dispatch }: { entr
<button type="button" onClick={() => setOpen((value) => !value)} aria-label={attentionTriggerLabel(entries.length)} title={attentionTriggerLabel(entries.length)}
className={cn("relative flex items-center justify-center text-ink-secondary transition-colors hover:bg-ink/[0.06] hover:text-ink focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus",
icons ? "size-[46px] shrink-0 rounded-xl" : phone ? "size-10 shrink-0 rounded-full border border-hairline bg-card text-ink" : "size-8 rounded-full")}>
- <Activity size={icons ? 20 : 18} strokeWidth={1.5} />
+ <Activity size={icons ? 20 : 18} />
{entries.length > 0 && <span className="absolute -right-0.5 -top-0.5 flex min-w-4 items-center justify-center rounded-full bg-accent px-0.5 text-[10px] font-semibold leading-4 text-ink">{entries.length > 9 ? "9+" : entries.length}</span>}
{attentionHasRunningWork(entries) && <span data-header-activity="" className="absolute bottom-0.5 right-0.5 size-1.5 rounded-full bg-success" aria-hidden="true" />}
</button>
diff --git a/src/components/SidebarAttentionPanel.tsx b/src/components/SidebarAttentionPanel.tsx
index dd56d375e1..1d1b1ab0a9 100644
--- a/src/components/SidebarAttentionPanel.tsx
+++ b/src/components/SidebarAttentionPanel.tsx
@@ -30,7 +30,7 @@ export function SidebarAttentionPanel({ entries, onUnpin, onJump, collapsed, onT
<Activity size={12} aria-hidden="true" className="shrink-0" />
<span className="min-w-0 flex-1 truncate">{t("attention.title")}</span>
{entries.length > 0 && (
- <span className="text-[11px] font-normal tabular-nums">{entries.length}</span>
+ <span className="text-[12px] font-normal tabular-nums">{entries.length}</span>
)}
<button
type="button"
@@ -43,7 +43,7 @@ export function SidebarAttentionPanel({ entries, onUnpin, onJump, collapsed, onT
</button>
</div>
{!collapsed && (entries.length === 0 ? (
- <div className="px-2.5 pb-1.5 pt-0.5 text-[11px] text-ink-secondary">{t("attention.empty")}</div>
+ <div className="px-2.5 pb-1.5 pt-0.5 text-[12px] leading-4 text-ink-secondary">{t("attention.empty")}</div>
) : (
<div className="max-h-56 overflow-y-auto">
<AttentionThreadRows entries={entries} onJump={onJump} />
diff --git a/src/components/SidebarBotActivity.tsx b/src/components/SidebarBotActivity.tsx
index ed1ab94f6d..d838d11bf8 100644
--- a/src/components/SidebarBotActivity.tsx
+++ b/src/components/SidebarBotActivity.tsx
@@ -198,7 +198,7 @@ export function AttentionThreadRows({ entries, onJump, inset = false, unreadDot
<Icon size={inset ? 16 : 15} aria-hidden="true" className={cn("shrink-0", colorClass)} />
<span className="min-w-0 flex-1">
<span className={cn("block truncate", unread && "font-medium text-ink")}>{entry.task.title}</span>
- <span className="block truncate text-[11px] text-ink-secondary">{name} · {status}</span>
+ <span className="block truncate text-[12px] leading-4 text-ink-secondary">{name} · {status}</span>
</span>
{unread && <span data-attention-unread-dot aria-hidden="true" className="size-1.5 shrink-0 rounded-full bg-accent" />}
</button>;
@@ -224,7 +224,7 @@ export function PinnedThreadRows({ entries, now, onJump, onUnpin }: { entries: A
<Icon size={15} aria-hidden="true" className={cn("shrink-0", status.active ? status.colorClass : "text-ink-secondary")} />
<span className="min-w-0 flex-1">
<span className="block truncate">{entry.task.title}</span>
- <span className="block truncate text-[11px] text-ink-secondary">{byline}</span>
+ <span className="block truncate text-[12px] leading-4 text-ink-secondary">{byline}</span>
</span>
</button>
<button type="button" aria-label={unpinLabel} title={unpinLabel} onClick={() => onUnpin(entry)}
@@ -255,9 +255,9 @@ export function SidebarBotActivity({ bot, rowThreadId, density, pendingQueued, d
const Icon = waiting ? CircleAlert : working ? Loader2 : teammateWait || task.queued ? Clock3 : pinnedOnly ? Pin : BellDot;
return <button key={task.threadId} type="button" data-sidebar-activity-row={task.threadId} aria-label={label} title={label}
onClick={() => dispatch({ type: "switchTask", botId: bot.id, threadId: task.threadId })}
- className={cn("flex min-h-7 w-full min-w-0 items-center gap-1.5 rounded-md px-2 py-1 text-left text-[11px] outline-none hover:bg-raised/50 focus-visible:ring-1 focus-visible:ring-accent/60", iconOnly && "justify-center", waiting ? "text-warning" : "text-ink-secondary")}>
- <Icon size={12} aria-hidden="true" className={cn("shrink-0", working && "animate-spin text-success", teammateWait && "text-warning", task.unread && !waiting && !working && !teammateWait && "text-accent")} />
- {!iconOnly && <><span className="min-w-0 flex-1 truncate">{title}</span>{!pinnedOnly && <span className="shrink-0 text-[10px]">{waiting ? t("task.waiting") : status}</span>}
+ className={cn("flex min-h-7 w-full min-w-0 items-center gap-1.5 rounded-md px-2 py-1 text-left text-[13px] leading-[18px] outline-none hover:bg-ink/[0.06] focus-visible:ring-1 focus-visible:ring-accent/60", iconOnly && "justify-center", waiting ? "text-warning" : "text-ink-secondary")}>
+ <Icon size={14} aria-hidden="true" className={cn("shrink-0", working && "animate-spin text-success", teammateWait && "text-warning", task.unread && !waiting && !working && !teammateWait && "text-accent")} />
+ {!iconOnly && <><span className="min-w-0 flex-1 truncate">{title}</span>{!pinnedOnly && <span className="shrink-0 text-[12px] leading-4">{waiting ? t("task.waiting") : status}</span>}
{task.unread && (waiting || working || teammateWait || task.queued) && <span className="size-1.5 shrink-0 rounded-full bg-accent" aria-hidden="true" />}</>}
</button>;
})}
diff --git a/src/components/SidebarBotListItem.test.ts b/src/components/SidebarBotListItem.test.ts
index 9431baa5e6..04cfea6d6e 100644
--- a/src/components/SidebarBotListItem.test.ts
+++ b/src/components/SidebarBotListItem.test.ts
@@ -296,9 +296,9 @@ describe("BotListItem", () => {
expect(rowClass(chief)).toBe(rowClass(plain));
});
- it("reads the name at 15px semibold and the preview at 13px", () => {
+ it("reads the name at 14px medium and the preview at 13px", () => {
const markup = renderRow(bot({ messages: [{ id: "b1", role: "bot", kind: "text", text: "All set.", at: 1 }] as Bot["messages"] }));
- expect(markup).toMatch(/class="[^"]*text-\[15px\] font-semibold[^"]*"/);
+ expect(markup).toMatch(/class="[^"]*text-\[14px\] font-medium[^"]*"/);
expect(markup).toMatch(/class="[^"]*truncate text-\[13px\][^"]*text-ink-secondary[^"]*"/);
});
diff --git a/src/components/SidebarConnectApps.tsx b/src/components/SidebarConnectApps.tsx
index 7105216d6f..7bc9e90705 100644
--- a/src/components/SidebarConnectApps.tsx
+++ b/src/components/SidebarConnectApps.tsx
@@ -81,7 +81,7 @@ export function SidebarConnectApps({ circle = false }: { circle?: boolean }) {
onClick={() => dispatch({ type: "togglePlugins", open: true })}
className={circle ? SIMPLE_TOP_BUTTON : cn("group/apps flex h-9 min-w-0 flex-1 items-center justify-center gap-1.5 rounded-full pl-4 pr-3 text-[14px] font-medium leading-5 text-ink", ELEVATED_CONTROL, ELEVATED_HOVER)}
>
- {circle ? <Puzzle size={18} strokeWidth={1.5} aria-hidden="true" /> : <>
+ {circle ? <Puzzle size={16} aria-hidden="true" /> : <>
<span className="min-w-0 truncate">{label}</span>
{/* The logos rest grey and apart, with no tile, so the sidebar's loudest colour is never an ad; hover brings the tiles and colour back. */}
<span aria-hidden="true" data-app-faces="" className="flex shrink-0 items-center gap-1 opacity-60 grayscale motion-safe:transition-[filter,opacity] group-hover/apps:opacity-100 group-hover/apps:grayscale-0 group-hover/apps:invert-0 group-hover/apps:mix-blend-normal group-focus-visible/apps:opacity-100 group-focus-visible/apps:grayscale-0 group-focus-visible/apps:invert-0 group-focus-visible/apps:mix-blend-normal">
diff --git a/src/components/SidebarFooterNav.tsx b/src/components/SidebarFooterNav.tsx
index 3dc6e37ee3..66e94d6bd5 100644
--- a/src/components/SidebarFooterNav.tsx
+++ b/src/components/SidebarFooterNav.tsx
@@ -80,7 +80,7 @@ export function SidebarAppsButton() {
state.pluginsOpen ? "bg-raised text-accent" : "text-ink-secondary hover:bg-raised/50 hover:text-ink",
)}
>
- <Puzzle size={18} />
+ <Puzzle size={16} />
</button>
);
}
diff --git a/src/components/SidebarInboxRow.tsx b/src/components/SidebarInboxRow.tsx
index fe67dcc10d..b88d893aed 100644
--- a/src/components/SidebarInboxRow.tsx
+++ b/src/components/SidebarInboxRow.tsx
@@ -34,7 +34,7 @@ export function SidebarInboxRow({ icons, large, running, onOpened }: {
return (
<button type="button" data-sidebar-inbox={count} aria-label={label} title={label} aria-pressed={open} onClick={toggle}
className={cn("relative mx-auto mb-1 flex size-[46px] shrink-0 items-center justify-center rounded-xl text-ink-secondary hover:bg-raised hover:text-ink focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus", open && "bg-raised text-ink")}>
- <Inbox size={20} strokeWidth={1.5} aria-hidden="true" />
+ <Inbox size={20} aria-hidden="true" />
{count > 0 && <span aria-hidden="true" data-inbox-count className="absolute -right-0.5 -top-0.5 flex min-w-4 items-center justify-center rounded-full bg-warning px-0.5 text-[10px] font-semibold leading-4 text-panel">{shown}</span>}
{dot}
</button>
@@ -45,10 +45,10 @@ export function SidebarInboxRow({ icons, large, running, onOpened }: {
<button type="button" data-sidebar-inbox={count} aria-label={label} title={label} aria-pressed={open} onClick={toggle}
className={cn("flex w-full min-w-0 items-center gap-2.5 rounded-lg px-2 py-1.5 text-left outline-none hover:bg-raised/60 focus-visible:ring-2 focus-visible:ring-accent/60")}>
<span className={cn("relative grid shrink-0 place-items-center rounded-full", open ? "bg-ink/[0.16] text-ink" : "bg-raised text-ink-secondary", large ? "size-9" : "size-8")}>
- <Inbox size={large ? 18 : 16} strokeWidth={1.75} aria-hidden="true" />
+ <Inbox size={16} aria-hidden="true" />
{dot}
</span>
- <span className={cn("min-w-0 flex-1 truncate text-ink", large ? "text-[14px] font-medium leading-5" : "text-[15px] font-semibold leading-5")}>{t("inbox.panel.title")}</span>
+ <span className="min-w-0 flex-1 truncate text-[14px] font-medium leading-5 text-ink">{t("inbox.panel.title")}</span>
{count > 0 && <span aria-hidden="true" data-inbox-count className="shrink-0 rounded-full bg-warning px-1.5 text-[11px] font-semibold tabular-nums text-panel">{shown}</span>}
</button>
</div>
diff --git a/src/components/SidebarPeople.tsx b/src/components/SidebarPeople.tsx
index 7973cd192f..e5f419e3b8 100644
--- a/src/components/SidebarPeople.tsx
+++ b/src/components/SidebarPeople.tsx
@@ -49,7 +49,7 @@ function PeopleStatusLine({ compact }: { compact: boolean }) {
if (compact || status === "ready") return null;
return (
<section aria-label={t("sidebar.people.title")} data-sidebar-people={status} className="px-2 pb-1">
- <div className="px-2 pb-0.5 pt-1 text-[11px] font-medium text-ink-tertiary">{t("sidebar.people.title")}</div>
+ <div className="px-2 pb-0.5 pt-1 text-[12px] font-medium leading-4 text-ink-tertiary">{t("sidebar.people.title")}</div>
{status === "loading" ? <div role="status" className="px-2 py-1 text-[13px] text-ink-tertiary">{t("sidebar.people.loading")}</div> : (
<div role="alert" className="flex items-center gap-2 px-2 py-1 text-[13px] text-ink-secondary">
<span className="min-w-0 flex-1 truncate">{t("sidebar.people.failed")}</span>
@@ -122,7 +122,7 @@ export function SidebarPeople({ compact, onOpened }: { compact: boolean; onOpene
<a href={invite} target="_blank" rel="noreferrer" aria-label={t("sidebar.people.invite")} title={t("sidebar.people.invite")} data-people-invite
className="flex items-center justify-center rounded-full p-1 text-ink-secondary hover:bg-raised/60 hover:text-ink">
<span className="flex items-center justify-center rounded-full border border-dashed border-hairline" style={{ width: face, height: face }}>
- <UserPlus aria-hidden="true" size={compact ? 13 : 14} strokeWidth={1.75} className="shrink-0" />
+ <UserPlus aria-hidden="true" size={compact ? 13 : 14} className="shrink-0" />
</span>
</a>
</li>
diff --git a/src/components/SidebarPhoneButton.tsx b/src/components/SidebarPhoneButton.tsx
index 3abaac0251..3103533965 100644
--- a/src/components/SidebarPhoneButton.tsx
+++ b/src/components/SidebarPhoneButton.tsx
@@ -171,7 +171,7 @@ export function SidebarPhoneStatusButton({
connected ? "text-success" : "text-ink-secondary hover:text-ink",
)}
>
- <Smartphone size={18} strokeWidth={1.75} />
+ <Smartphone size={18} />
{status.kind === "unpaired" && (
<span
aria-hidden="true"
diff --git a/src/components/SidebarPinnedThreadsPanel.tsx b/src/components/SidebarPinnedThreadsPanel.tsx
index 330d970aca..49cab81e88 100644
--- a/src/components/SidebarPinnedThreadsPanel.tsx
+++ b/src/components/SidebarPinnedThreadsPanel.tsx
@@ -31,7 +31,7 @@ export function SidebarPinnedThreadsPanel({ entries, now, onJump, onUnpin, colla
</button>
<Pin size={12} aria-hidden="true" className="shrink-0" />
<span className="min-w-0 flex-1 truncate">{t("sidebar.pinnedThreads.title")}</span>
- <span className="text-[11px] font-normal tabular-nums">{entries.length}</span>
+ <span className="text-[12px] font-normal tabular-nums">{entries.length}</span>
</div>
{!collapsed && (
<div className="max-h-56 overflow-y-auto">
diff --git a/src/components/SidebarProfileMenu.tsx b/src/components/SidebarProfileMenu.tsx
index 6fd943b725..7223791183 100644
--- a/src/components/SidebarProfileMenu.tsx
+++ b/src/components/SidebarProfileMenu.tsx
@@ -634,7 +634,7 @@ export function SidebarProfileMenu({ iconOnly = false, rail = false, circle = fa
const noteworthy = update && updateNoteworthy(update.phase, update.pending) && !updateHasButton(update.phase);
const needsYou = account?.automationsNeedYou === true;
const initials = profileInitials(profile);
- const nameless = simple && initials === "?" ? <UserRound size={18} strokeWidth={1.75} aria-hidden /> : undefined;
+ const nameless = simple && initials === "?" ? <UserRound size={16} aria-hidden /> : undefined;
const label = accountLabel(name, { automationsNeedYou: needsYou, update: simple && noteworthy && update ? update.label : null, move: move.kind, announcements: news.unread });
const dot = accountDot({ automationsNeedYou: needsYou, update: noteworthy ? (update.phase === "error" ? "failed" : "news") : null, move: move.kind, announcements: news.unread });
// Advanced's full row has its own update badge: its avatar's dot is the move's and the announcements' alone.
diff --git a/src/components/SidebarResizeHandle.tsx b/src/components/SidebarResizeHandle.tsx
index 6bf895d683..03ca258fea 100644
--- a/src/components/SidebarResizeHandle.tsx
+++ b/src/components/SidebarResizeHandle.tsx
@@ -11,9 +11,7 @@ import {
saveSidebarWidth,
} from "@/lib/sidebar-preferences";
-export function sidebarDefaultWidth(simple: boolean): number {
- return simple ? 280 : 320;
-}
+export const SIDEBAR_DEFAULT_WIDTH = 280;
/** Narrower than this, the sidebar's dragged edge leaves its column of avatars; wider again, the sidebar opens. */
export const AVATARS_BELOW = 160;
@@ -37,7 +35,7 @@ export function useSidebarWidth({ simple, sidePanelOpen, sidebarRef }: {
sidebarRef: RefObject<HTMLElement | null>;
}) {
const key = simple ? SIMPLE_SIDEBAR_WIDTH_KEY : SIDEBAR_WIDTH_KEY;
- const defaultWidth = sidebarDefaultWidth(simple);
+ const defaultWidth = SIDEBAR_DEFAULT_WIDTH;
const cap = simple ? 400 : 480;
const maxWidth = sidePanelOpen ? defaultWidth : Math.min(cap, window.innerWidth - 320);
const [savedWidth, setSavedWidth] = useState<number | null>(() => loadSidebarWidth(undefined, key));
diff --git a/src/components/SidebarRowMarkers.tsx b/src/components/SidebarRowMarkers.tsx
index 50b9ded887..5b62ad4d86 100644
--- a/src/components/SidebarRowMarkers.tsx
+++ b/src/components/SidebarRowMarkers.tsx
@@ -5,7 +5,7 @@ import { t } from "@/lib/i18n";
export function rowSurface(selected: boolean): string {
return selected
? "[--row:var(--color-raised)]"
- : "[--row:var(--color-panel)] max-md:[--row:var(--color-app)] hover:[--row:color-mix(in_srgb,var(--color-raised)_50%,var(--color-panel))]";
+ : "[--row:var(--color-panel)] max-md:[--row:var(--color-app)] hover:[--row:color-mix(in_srgb,var(--color-ink)_6%,var(--color-panel))]";
}
/** The conversation the chat window has open: the same plain fill as a selected row. */
diff --git a/src/components/SidebarSectionHeader.tsx b/src/components/SidebarSectionHeader.tsx
index 1f7e7b16ec..75ea4c4a57 100644
--- a/src/components/SidebarSectionHeader.tsx
+++ b/src/components/SidebarSectionHeader.tsx
@@ -78,7 +78,7 @@ export function SidebarSectionHeader({
if (line) {
const tail = onToggle && (
- <Chevron size={14} aria-hidden="true" className="shrink-0 text-ink-secondary opacity-0 transition-opacity group-hover/section:opacity-100 group-focus-within/section:opacity-100 touch:opacity-100" />
+ <Chevron size={12} aria-hidden="true" className="shrink-0 text-ink-secondary opacity-0 transition-opacity group-hover/section:opacity-100 group-focus-within/section:opacity-100 touch:opacity-100" />
);
return (
<div
@@ -143,15 +143,15 @@ export function SidebarSectionHeader({
title={toggleTitle}
className="flex min-w-0 flex-1 items-center gap-1.5 rounded-md px-1 py-0.5 text-left hover:bg-raised/50"
>
- <span className="truncate text-[12px] font-semibold text-ink-secondary">
+ <span className="truncate text-[13px] leading-[18px] text-ink-secondary">
{name}
</span>
- <Chevron size={13} className="shrink-0 text-ink-secondary" aria-hidden="true" />
+ <Chevron size={12} className="shrink-0 text-ink-secondary" aria-hidden="true" />
<SectionAttention attention={attention} label={attentionLabel} alert={alert} />
</button>
) : (
<div className="flex min-w-0 flex-1 items-center gap-1.5 px-1 py-0.5">
- <span className="truncate text-[12px] font-semibold text-ink-secondary">
+ <span className="truncate text-[13px] leading-[18px] text-ink-secondary">
{name}
</span>
{attentionLabel && <span className="sr-only">{attentionLabel}</span>}
diff --git a/src/components/SidebarSimpleRail.tsx b/src/components/SidebarSimpleRail.tsx
index 66ee6491cb..c7ca586b03 100644
--- a/src/components/SidebarSimpleRail.tsx
+++ b/src/components/SidebarSimpleRail.tsx
@@ -18,7 +18,7 @@ export function SimpleRailFooter({ owner = null, archived }: {
<SidebarConnectApps circle />
<UpdateIndicator />
<SidebarProfileMenu iconOnly rail simple={account} />
- <SidebarPlaceStatus place={place} className="absolute bottom-3 left-full z-40 ml-2 w-56 rounded-md bg-menu px-2 py-1 text-[11px] shadow-lg" />
+ <SidebarPlaceStatus place={place} className="absolute bottom-3 left-full z-40 ml-2 w-56 rounded-md bg-menu px-2 py-1 text-[12px] leading-4 shadow-lg" />
</div>
);
}
diff --git a/src/components/SidebarSimpleTop.tsx b/src/components/SidebarSimpleTop.tsx
index 9a95d0a156..a67a98c6d4 100644
--- a/src/components/SidebarSimpleTop.tsx
+++ b/src/components/SidebarSimpleTop.tsx
@@ -35,7 +35,7 @@ export function SidebarSearchToggle({ open, onToggle, corner = false, ref }: { o
title={t("sidebar.searchAria")}
className={corner ? SIMPLE_CORNER_BUTTON : SIMPLE_TOP_BUTTON}
>
- <Search size={corner ? 17 : 18} strokeWidth={1.5} aria-hidden="true" />
+ <Search size={16} aria-hidden="true" />
</button>
);
}
diff --git a/src/components/SidebarThreadRow.tsx b/src/components/SidebarThreadRow.tsx
index aa1c9ea648..2467aa91f6 100644
--- a/src/components/SidebarThreadRow.tsx
+++ b/src/components/SidebarThreadRow.tsx
@@ -119,9 +119,9 @@ export function HelperThreadGroup<T>({ tasks, renderThread }: { tasks: T[]; rend
return <div data-sidebar-helper-threads="">
<button type="button" aria-expanded={open} onClick={() => setOpen((value) => !value)} aria-label={t(open ? "task.collapseNamed" : "task.expandNamed", { name: label })}
className="flex min-h-8 w-full items-center gap-1.5 rounded-md py-1 pl-1.5 pr-3 text-left text-[12px] text-ink-secondary hover:bg-raised/30 hover:text-ink">
- <ChevronRight aria-hidden="true" size={11} className={cn("shrink-0 transition-transform", open && "rotate-90")} />
+ <ChevronRight aria-hidden="true" size={12} className={cn("shrink-0 transition-transform", open && "rotate-90")} />
<span className="truncate">{label}</span>
- <span className="shrink-0 text-[10px] opacity-50">{tasks.length}</span>
+ <span className="shrink-0 text-[12px] opacity-50">{tasks.length}</span>
</button>
{open && <div role="group" aria-label={label}>{tasks.map(renderThread)}</div>}
</div>;
@@ -369,11 +369,11 @@ export const SidebarThreadRow = memo(function SidebarThreadRow({ task, ownerId,
</span> : heading}
</button>}
{task.link && <a href={task.link} target="_blank" rel="noreferrer" dir="ltr" title={task.link} aria-label={t("task.openLink", { link: threadLinkLabel(task.link) ?? task.link })}
- className={cn("shrink-0 rounded px-1 font-mono text-[11px] text-ink-secondary hover:bg-raised hover:text-ink outline-none focus-visible:ring-1 focus-visible:ring-accent/60 [unicode-bidi:isolate]", panel && "mt-2.5")}>{threadLinkLabel(task.link) ?? t("task.link")}</a>}
+ className={cn("shrink-0 rounded px-1 font-mono text-[12px] text-ink-secondary hover:bg-raised hover:text-ink outline-none focus-visible:ring-1 focus-visible:ring-accent/60 [unicode-bidi:isolate]", panel && "mt-2.5")}>{threadLinkLabel(task.link) ?? t("task.link")}</a>}
{!renaming && <span className={cn("flex shrink-0 items-center gap-2 px-1", panel && "pt-2.5 empty:hidden")} onClick={choose} onContextMenu={contextMenu}>
- {updatedLabel && !panel && <time dateTime={new Date(updatedAt).toISOString()} className="shrink-0 tabular-nums text-[10px] text-ink-secondary">{updatedLabel}</time>}
+ {updatedLabel && !panel && <time dateTime={new Date(updatedAt).toISOString()} className="shrink-0 tabular-nums text-[12px] font-medium leading-4 text-ink-secondary">{updatedLabel}</time>}
{task.pinned === true && <Pin size={11} className="shrink-0 text-ink-secondary" aria-label={t("sidebar.bot.pin")} />}
- {task.activity === "waiting-on-you" ? <span className="shrink-0 text-[10px] font-medium text-warning">{t("task.waiting")}</span> : isWaitingOnTeammate(task) ? <Clock3 size={11} className="shrink-0 text-ink-secondary" aria-label={t("task.waitingOnTeammate")} /> : isWorking(task) && !panel ? <Loader2 size={11} className="shrink-0 animate-spin text-success" aria-label={activityLabel ?? t("chat.activity.working")} /> : task.queued ? <span className="shrink-0 text-[10px] text-ink-secondary">{t("task.queued")}</span> : null}
+ {task.activity === "waiting-on-you" ? <span className="shrink-0 text-[12px] font-medium leading-4 text-warning">{t("task.waiting")}</span> : isWaitingOnTeammate(task) ? <Clock3 size={11} className="shrink-0 text-ink-secondary" aria-label={t("task.waitingOnTeammate")} /> : isWorking(task) && !panel ? <Loader2 size={11} className="shrink-0 animate-spin text-success" aria-label={activityLabel ?? t("chat.activity.working")} /> : task.queued ? <span className="shrink-0 text-[10px] text-ink-secondary">{t("task.queued")}</span> : null}
{task.unread && <span className="size-1.5 shrink-0 rounded-full bg-accent" aria-label={t("task.unread")} />}
</span>}
{!selectMode && <button ref={actionRef} type="button" aria-label={t("task.actions", { title: displayTitle })} aria-expanded={Boolean(menu)}
diff --git a/src/components/SidebarTiles.test.ts b/src/components/SidebarTiles.test.ts
index 6ee17f09b9..05d98b9de1 100644
--- a/src/components/SidebarTiles.test.ts
+++ b/src/components/SidebarTiles.test.ts
@@ -42,11 +42,11 @@ beforeEach(() => {
afterEach(() => vi.unstubAllGlobals());
describe("the sidebar tiles", () => {
- it.each([true, false])("draws the main tile and a pinned tile the same: 78 by 92, radius 8, a 56px avatar over a one-line 13px medium name (main %s)", (primary) => {
+ it.each([true, false])("draws the main tile and a pinned tile the same: 95 by 92, radius 12, a 60px avatar over a one-line 12px regular name (main %s)", (primary) => {
const html = renderToStaticMarkup(createElement(SidebarBotTile, { ...props(bot({ chiefOfStaff: primary })), primary }));
- expect(html).toMatch(new RegExp(`data-sidebar-tile="${primary ? "primary" : "pinned"}"[^>]*class="[^"]*\\bh-\\[92px\\] w-\\[78px\\][^"]*\\brounded-\\[8px\\]`));
- expect(html).toContain('width="56px" height="56px"');
- expect(html).toMatch(/truncate text-center text-\[13px\] font-medium leading-4 text-ink"[^>]*>MausBot</);
+ expect(html).toMatch(new RegExp(`data-sidebar-tile="${primary ? "primary" : "pinned"}"[^>]*class="[^"]*\\bh-\\[92px\\] w-\\[95px\\][^"]*\\brounded-xl\\b`));
+ expect(html).toContain('width="60px" height="60px"');
+ expect(html).toMatch(/truncate text-center text-\[12px\] leading-4 text-ink"[^>]*>MausBot</);
expect(html).not.toContain("data-provider-mark");
});
@@ -125,9 +125,9 @@ describe("the tile grid", () => {
const html = grid(main, pins(count));
const drag = count > 1 ? ":drag" : "";
expect(tiles(html)).toEqual(["primary:mausbot", ...pins(count).map((pin) => `pinned:${pin.id}${drag}`)]);
- expect(html).toMatch(/^<div data-sidebar-tiles="" class="flex max-h-\[40vh\] flex-wrap justify-center gap-1 overflow-y-auto /);
- expect(html.match(/\bh-\[92px\] w-\[78px\]/g)).toHaveLength(count + 1);
- expect(html.match(/width="56px" height="56px"/g)).toHaveLength(count + 1);
+ expect(html).toMatch(/^<div data-sidebar-tiles="" class="flex max-h-\[40vh\] flex-wrap justify-center gap-x-1 gap-y-3 overflow-y-auto /);
+ expect(html.match(/\bh-\[92px\] w-\[95px\]/g)).toHaveLength(count + 1);
+ expect(html.match(/width="60px" height="60px"/g)).toHaveLength(count + 1);
expect(html.match(/data-testid="chief-badge"/g)).toHaveLength(1);
});
@@ -142,11 +142,11 @@ describe("the tile grid", () => {
});
// A grid taller than its 40vh cap scrolls, and its 8px scrollbar takes from the room.
- it.each([[280, 3], [360, 4]])("fits %ipx of sidebar to %i tiles across, with or without a scrollbar", (width, columns) => {
+ it.each([[280, 2], [360, 3]])("fits %ipx of sidebar to %i tiles across, with or without a scrollbar", (width, columns) => {
const html = grid(main, pins(5));
const tile = Number(/data-sidebar-tile="primary"[^>]*class="[^"]*\bw-\[(\d+)px\]/.exec(html)![1]);
const gridClass = /data-sidebar-tiles="" class="([^"]*)"/.exec(html)![1]!;
- const gap = 4 * Number(/\bgap-(\d+)\b/.exec(gridClass)![1]);
+ const gap = 4 * Number(/\bgap-x-(\d+)\b/.exec(gridClass)![1]);
const gutters = 2 * 4 * Number(/\bpx-(\d+)\b/.exec(gridClass)![1]);
const across = (room: number) => Math.floor((room + gap) / (tile + gap));
expect(across(width - gutters)).toBe(columns);
diff --git a/src/components/SidebarTiles.tsx b/src/components/SidebarTiles.tsx
index 3bf2f2aa1f..7ed07359bd 100644
--- a/src/components/SidebarTiles.tsx
+++ b/src/components/SidebarTiles.tsx
@@ -75,8 +75,8 @@ export const SidebarBotTile = memo(function SidebarBotTile({ primary = false, dr
onKeyDown={onKeyDown}
onContextMenu={(event) => openBotContextMenu(onMenu, bot.id, event)}
className={cn(
- "flex h-[92px] w-[78px] shrink-0 cursor-pointer flex-col items-center rounded-[8px] bg-[var(--tile)] px-1 pt-2 transition-colors duration-150", SIMPLE_ROW_FOCUS,
- selected ? "[--tile:var(--color-raised)]" : "[--tile:var(--color-panel)] hover:[--tile:color-mix(in_srgb,var(--color-raised)_50%,var(--color-panel))]",
+ "flex h-[92px] w-[95px] shrink-0 cursor-pointer flex-col items-center rounded-xl bg-[var(--tile)] px-2 pb-1 pt-1.5 transition-colors duration-150", SIMPLE_ROW_FOCUS,
+ selected ? "[--tile:var(--color-raised)]" : "[--tile:var(--color-panel)] hover:[--tile:color-mix(in_srgb,var(--color-ink)_6%,var(--color-panel))]",
pinnedCircleDragClass({ drag, dragging, drop }),
)}
>
@@ -84,7 +84,7 @@ export const SidebarBotTile = memo(function SidebarBotTile({ primary = false, dr
<BotAvatar
bot={bot}
state={stateForBot({ ...bot, messages: visible })}
- size={56}
+ size={60}
motion={mascotMotion?.kind ?? "none"}
motionKey={mascotMotion?.nonce ?? 0}
animated={working || noticing || (mascotMotion?.kind ?? "none") !== "none"}
@@ -119,8 +119,8 @@ export const SidebarBotTile = memo(function SidebarBotTile({ primary = false, dr
title={tooltip}
onCommit={rename}
onEditingChange={setRenaming}
- className="min-w-0 truncate text-center text-[13px] font-medium leading-4 text-ink"
- inputClassName="w-full rounded bg-inset px-1 text-center text-[13px] font-medium leading-4"
+ className="min-w-0 truncate text-center text-[12px] leading-4 text-ink"
+ inputClassName="w-full rounded bg-inset px-1 text-center text-[12px] leading-4"
/>
</span>
</div>
@@ -172,7 +172,7 @@ export function SidebarTileGrid({ primary, pinned, row, corner = false }: { prim
if (!primary && order.ranked.length === 0) return null;
return (
<div ref={besideCorner.ref} data-sidebar-tiles="" data-beside-corner={besideCorner.beside ? "" : undefined}
- className="flex max-h-[40vh] flex-wrap justify-center gap-1 overflow-y-auto px-3 pb-4 pt-2.5" {...order.frameProps}>
+ className="flex max-h-[40vh] flex-wrap justify-center gap-x-1 gap-y-3 overflow-y-auto px-3 pb-4 pt-2.5" {...order.frameProps}>
{primary && <SidebarBotTile {...row(primary)} primary />}
{order.ranked.map((bot) => <SidebarBotTile key={bot.id} {...row(bot)} {...order.dragProps(bot)} />)}
<span role="status" className="sr-only">{order.moved}</span>
diff --git a/src/components/SimpleModelMenu.tsx b/src/components/SimpleModelMenu.tsx
index b40df4948a..333bc8f674 100644
--- a/src/components/SimpleModelMenu.tsx
+++ b/src/components/SimpleModelMenu.tsx
@@ -9,7 +9,7 @@ import { cn } from "@/lib/cn";
import { t } from "@/lib/i18n";
import { BotAvatar } from "./Avatar";
import { InstanceProviderMark } from "./ProviderIcons";
-import { MENU_GUTTER, MENU_ICON, MENU_LABEL, MENU_LINE, MENU_NOTE, MENU_ROW, MENU_SEPARATOR, MENU_STROKE, MENU_TRAILING, SIMPLE_MENU_META, SIMPLE_MENU_ROW } from "./menu-recipe";
+import { MENU_GUTTER, MENU_ICON, MENU_LABEL, MENU_LINE, MENU_NOTE, MENU_ROW, MENU_SEPARATOR, MENU_TRAILING, SIMPLE_MENU_META, SIMPLE_MENU_ROW } from "./menu-recipe";
import { effortLabel } from "./ModelPicker";
export type SimpleThinking =
@@ -39,7 +39,7 @@ export interface SimpleModelMenuProps extends SimpleMenuActions {
}
const Gutter = ({ children }: { children?: ReactNode }) => <span className={MENU_GUTTER}>{children}</span>;
-const Forward = () => <ChevronRight size={16} strokeWidth={MENU_STROKE} className={MENU_TRAILING} aria-hidden="true" />;
+const Forward = () => <ChevronRight size={16} className={MENU_TRAILING} aria-hidden="true" />;
/** A model's name and its secondary label, each on its own line so a long name never eats the label beside it. */
function RowLines({ label, children }: { label: ReactNode; children?: ReactNode }) {
@@ -117,7 +117,7 @@ function GroupBody({ group, props }: { group: MenuGroup; props: SimpleModelMenuP
return (
<button type="button" data-menu-row data-simple-set-up tabIndex={-1} onClick={(event) => props.onSetUp(instance, event.detail === 0)}
title={t("model.simple.needsSetup", { name: group.account ?? group.provider })} className={MENU_ROW}>
- <Gutter>{body.kind === "setUp" ? <Download size={16} strokeWidth={MENU_STROKE} className={MENU_ICON} aria-hidden="true" /> : <LogIn size={16} strokeWidth={MENU_STROKE} className={MENU_ICON} aria-hidden="true" />}</Gutter>
+ <Gutter>{body.kind === "setUp" ? <Download size={16} className={MENU_ICON} aria-hidden="true" /> : <LogIn size={16} className={MENU_ICON} aria-hidden="true" />}</Gutter>
<span className="min-w-0 flex-1 truncate">{body.kind === "setUp" ? t("model.simple.setUp") : t("model.simple.signIn")}</span>
<Forward />
</button>
@@ -135,7 +135,7 @@ function GroupBody({ group, props }: { group: MenuGroup; props: SimpleModelMenuP
<Gutter>
{props.menu.busy
? <Loader2 size={14} className="animate-spin text-ink-secondary" aria-hidden="true" />
- : <RefreshCw size={16} strokeWidth={MENU_STROKE} className={MENU_ICON} aria-hidden="true" />}
+ : <RefreshCw size={16} className={MENU_ICON} aria-hidden="true" />}
</Gutter>
<span className="min-w-0 flex-1 truncate">{t("common.checkAgain")}</span>
</button>
@@ -158,7 +158,7 @@ function GroupBody({ group, props }: { group: MenuGroup; props: SimpleModelMenuP
)}
{body.signInForOwn && (
<button type="button" data-menu-row data-simple-sign-in tabIndex={-1} onClick={(event) => props.onSetUp(instance, event.detail === 0)} className={MENU_ROW}>
- <Gutter><LogIn size={16} strokeWidth={MENU_STROKE} className={MENU_ICON} aria-hidden="true" /></Gutter>
+ <Gutter><LogIn size={16} className={MENU_ICON} aria-hidden="true" /></Gutter>
<span className="min-w-0 flex-1 truncate">{t("model.simple.signInForOwn", { name: group.provider })}</span>
<Forward />
</button>
@@ -170,8 +170,8 @@ function GroupBody({ group, props }: { group: MenuGroup; props: SimpleModelMenuP
<Gutter />
<span className="min-w-0 flex-1 truncate">{body.toggle === "less" ? t("model.showSuggested") : t("model.showAll", { count: body.total })}</span>
{body.toggle === "less"
- ? <ChevronUp size={16} strokeWidth={MENU_STROKE} className={MENU_TRAILING} aria-hidden="true" />
- : <ChevronDown size={16} strokeWidth={MENU_STROKE} className={MENU_TRAILING} aria-hidden="true" />}
+ ? <ChevronUp size={16} className={MENU_TRAILING} aria-hidden="true" />
+ : <ChevronDown size={16} className={MENU_TRAILING} aria-hidden="true" />}
</button>
</div>
)}
@@ -194,12 +194,12 @@ function Thinking({ thinking, labelId }: { thinking: SimpleThinking; labelId: st
<div data-simple-thinking className="flex flex-col">
<button type="button" data-menu-row data-simple-thinking-toggle tabIndex={-1} aria-expanded={open} aria-controls={`${labelId}-steps`}
onClick={() => setOpen(!open)} className={cn(MENU_ROW, open && "hover:bg-transparent focus:bg-transparent")}>
- <Gutter><Lightbulb size={16} strokeWidth={MENU_STROKE} className={MENU_ICON} aria-hidden="true" /></Gutter>
+ <Gutter><Lightbulb size={16} className={MENU_ICON} aria-hidden="true" /></Gutter>
<span id={labelId} className="min-w-0 flex-1 truncate">{t("botSettings.simple.thinking")}</span>
{!open && <span className="shrink-0 text-ink-secondary">{auto ? t("model.simple.auto") : effortLabel(levels.current!)}</span>}
{open
- ? <ChevronUp size={16} strokeWidth={MENU_STROKE} className={MENU_TRAILING} aria-hidden="true" />
- : <ChevronDown size={16} strokeWidth={MENU_STROKE} className={MENU_TRAILING} aria-hidden="true" />}
+ ? <ChevronUp size={16} className={MENU_TRAILING} aria-hidden="true" />
+ : <ChevronDown size={16} className={MENU_TRAILING} aria-hidden="true" />}
</button>
<div id={`${labelId}-steps`} hidden={!open}>
<div data-simple-effort role="group" aria-labelledby={labelId} className="m-1 grid rounded-full bg-ink/[0.05] p-[3px]"
@@ -239,7 +239,7 @@ export function SimpleModelMenu(props: SimpleModelMenuProps) {
<div data-simple-model-menu className="flex min-h-0 flex-1 flex-col">
{menu.search && (
<div data-simple-model-search className="group/search flex h-9 shrink-0 items-center gap-2 border-b-[0.5px] border-ink/10 pl-3.5 pr-2">
- <Search size={16} strokeWidth={MENU_STROKE} className="shrink-0 text-ink-tertiary group-focus-within/search:text-ink-secondary" aria-hidden="true" />
+ <Search size={16} className="shrink-0 text-ink-tertiary group-focus-within/search:text-ink-secondary" aria-hidden="true" />
<input
data-menu-search
value={query}
@@ -251,7 +251,7 @@ export function SimpleModelMenu(props: SimpleModelMenuProps) {
{query && (
<button type="button" aria-label={t("model.simple.clearSearch")} onClick={() => props.onQuery("")}
className="flex size-5 shrink-0 items-center justify-center rounded-full text-ink-tertiary hover:bg-ink/[0.06] hover:text-ink">
- <X size={14} strokeWidth={MENU_STROKE} aria-hidden="true" />
+ <X size={14} aria-hidden="true" />
</button>
)}
{menu.results !== null && <span role="status" className="sr-only">{t("model.results", { count: menu.results })}</span>}
@@ -342,7 +342,7 @@ export function SimpleModelMenu(props: SimpleModelMenuProps) {
)}
{props.onManage && (
<button type="button" data-menu-row data-simple-manage onClick={props.onManage} className={MENU_ROW}>
- <Gutter><Settings size={16} strokeWidth={MENU_STROKE} className={MENU_ICON} aria-hidden="true" /></Gutter>
+ <Gutter><Settings size={16} className={MENU_ICON} aria-hidden="true" /></Gutter>
<span className="min-w-0 flex-1 truncate">{t("model.simple.manage")}</span>
<Forward />
</button>
diff --git a/src/components/TeamSideSwitch.tsx b/src/components/TeamSideSwitch.tsx
index fe5635e2c4..2951e6d48a 100644
--- a/src/components/TeamSideSwitch.tsx
+++ b/src/components/TeamSideSwitch.tsx
@@ -90,7 +90,7 @@ export function TeamSideSwitch({ compact, listOnly = false }: { compact: boolean
className={cn("relative flex items-center justify-center gap-1.5 whitespace-nowrap rounded-full font-medium transition-colors", FOCUS,
compact ? "size-9 rounded-xl" : "h-8 min-w-0 flex-1 px-3 text-[13px]",
on ? "bg-composer text-ink shadow-[0_1px_2px_rgb(0_0_0/0.12)] ring-[0.5px] ring-ink/10" : "text-ink-secondary hover:text-ink")}>
- {compact ? <Icon size={16} strokeWidth={1.75} aria-hidden="true" /> : t(label)}
+ {compact ? <Icon size={16} aria-hidden="true" /> : t(label)}
{unread && <span role="img" data-team-side-unread={option} aria-label={t("task.unread")}
className={cn("size-1.5 rounded-full bg-accent", compact && "absolute right-1.5 top-1.5")} />}
</button>
diff --git a/src/components/WatchScreenButton.tsx b/src/components/WatchScreenButton.tsx
index dbbde67362..859cb73c37 100644
--- a/src/components/WatchScreenButton.tsx
+++ b/src/components/WatchScreenButton.tsx
@@ -18,7 +18,7 @@ export function WatchScreenButton({ botId, messages, liveTools, place }: { botId
<button
data-testid="watch-screen"
onClick={(event) => { writeComputerPanelView(botId, screen === "browser" ? "browser" : "computer"); rememberComputerPanelOpen({ botId, opener: event.currentTarget, tabs: event.detail === 0, browser: screen === "browser" }); dispatch({ type: "toggleComputer", open: true }); }}
- className={cn("flex items-center gap-1.5 rounded-full border border-hairline/40 bg-raised/60 px-2.5 py-1 text-[13px] text-ink-secondary hover:bg-raised hover:text-ink", COMPACT_BUBBLE)}
+ className={cn("flex items-center gap-1.5 rounded-full border border-hairline/40 bg-raised/60 h-9 px-3 text-[13px] text-ink-secondary hover:bg-raised hover:text-ink", COMPACT_BUBBLE)}
title={t("chat.watchScreenHint")}
>
<Monitor size={13} aria-hidden="true" />
diff --git a/src/components/WindowFrameBar.tsx b/src/components/WindowFrameBar.tsx
index 413c9ebeb5..2e70db1536 100644
--- a/src/components/WindowFrameBar.tsx
+++ b/src/components/WindowFrameBar.tsx
@@ -52,7 +52,7 @@ export function WindowFrameBar({ notifications = false }: { notifications?: bool
onClick={() => dispatch({ type: "toggleAppSettings", open: true })}
className={FRAME_BAR_BUTTON}
>
- <Settings size={15} strokeWidth={1.75} aria-hidden="true" />
+ <Settings size={15} aria-hidden="true" />
</button>
</div>
</div>
diff --git a/src/components/bot-access/HeaderShare.tsx b/src/components/bot-access/HeaderShare.tsx
index 1c5d4549c6..6b8e88ee7c 100644
--- a/src/components/bot-access/HeaderShare.tsx
+++ b/src/components/bot-access/HeaderShare.tsx
@@ -48,7 +48,7 @@ export function HeaderShare({ bot }: { bot: Bot }) {
);
return (
<span data-header-share={shared?.kind ?? "private"} className="flex shrink-0 items-center gap-1.5">
- <ShareBotButton bot={bot} headerMenu={<ExportMore key={bot.threadId} bot={bot} />} className={cn("size-8 items-center justify-center rounded-full text-ink-secondary hover:text-ink", ELEVATED_FLOAT, ELEVATED_HOVER, shared ? WIDE_ONLY : "flex")}
+ <ShareBotButton bot={bot} headerMenu={<ExportMore key={bot.threadId} bot={bot} />} className={cn("size-9 items-center justify-center rounded-full text-ink-secondary hover:text-ink", ELEVATED_FLOAT, ELEVATED_HOVER, shared ? WIDE_ONLY : "flex")}
leading={(open) => shared?.kind === "everyone" ? marker(t("teamSettings.everyone", { team: teamName }), "bg-accent/15 text-accent", open)
: shared?.kind === "added" ? marker(t("botAccess.onlyAdded"), "bg-ink/[0.08] text-ink-secondary", open)
: shared?.kind === "people" ? <>
diff --git a/src/components/cloud-buy/ChooseScreen.tsx b/src/components/cloud-buy/ChooseScreen.tsx
index 3ab3144bd6..e1ca6b372c 100644
--- a/src/components/cloud-buy/ChooseScreen.tsx
+++ b/src/components/cloud-buy/ChooseScreen.tsx
@@ -47,7 +47,7 @@ function PlanCard({ card, shown, details, compare, busy, onStart }: {
{shown.map(row => {
const Icon = ROW_ICON[row.key];
return <li key={row.key} data-plan-row={row.key} className="grid grid-cols-[16px_minmax(0,1fr)] items-start gap-2.5 text-[13px] leading-[18px] text-ink">
- {Icon ? <Icon size={16} strokeWidth={1.5} aria-hidden="true" className="mt-px text-ink-tertiary" /> : <span />}
+ {Icon ? <Icon size={16} aria-hidden="true" className="mt-px text-ink-tertiary" /> : <span />}
<span>{row.text}{row.note && <small className="block text-[12px] leading-4 text-ink-tertiary">{row.note}</small>}</span>
</li>;
})}
@@ -89,7 +89,7 @@ export function ChooseScreen({ offer, current = null, own = null, now, busy, sig
</p>
<button type="button" aria-expanded={compare} aria-controls={cards.map(card => detailsId(card.tier)).join(" ")} onClick={() => setCompare(!compare)}
className="-ms-2 mt-2 inline-flex items-center gap-1 self-start rounded-full py-0.5 pe-1.5 ps-2 text-[13px] leading-[18px] text-(--cloud-night-ink-quiet) transition-colors hover:bg-white/10 hover:text-(--cloud-night-ink) motion-reduce:transition-none">
- {t("pro.seePlans")}<ChevronDown size={14} strokeWidth={1.5} aria-hidden="true" className={cn("transition-transform motion-reduce:transition-none", compare && "rotate-180")} />
+ {t("pro.seePlans")}<ChevronDown size={14} aria-hidden="true" className={cn("transition-transform motion-reduce:transition-none", compare && "rotate-180")} />
</button>
</NightCard>
</div>
@@ -116,7 +116,7 @@ export function ChooseScreen({ offer, current = null, own = null, now, busy, sig
<ul className="flex flex-wrap gap-x-5 gap-y-2">
{FEATURES.map(([Icon, title, body]) => <li key={title} className="flex text-[13px] leading-[18px] text-ink">
<span aria-hidden="true" title={t(body)} className="inline-flex items-center gap-1.5">
- <Icon size={16} strokeWidth={1.5} className="shrink-0 text-ink-tertiary" />{t(title)}
+ <Icon size={16} className="shrink-0 text-ink-tertiary" />{t(title)}
</span>
<span className="sr-only">{t(title)}: {t(body)}</span>
</li>)}
@@ -124,7 +124,7 @@ export function ChooseScreen({ offer, current = null, own = null, now, busy, sig
</section>
<div className="flex flex-wrap items-center justify-between gap-x-4 gap-y-2 border-t-[0.5px] border-ink/10 pt-4 text-[12px] leading-4 text-ink-tertiary">
<p className="flex flex-wrap items-center gap-x-2.5 gap-y-1">
- <span className="inline-flex items-center gap-1.5"><Lock size={13} strokeWidth={1.5} aria-hidden="true" />{t("cloudBuy.secure")}</span>
+ <span className="inline-flex items-center gap-1.5"><Lock size={13} aria-hidden="true" />{t("cloudBuy.secure")}</span>
<span role="img" aria-label={t("cloudBuy.wallets")} className="inline-flex gap-1">
{[t("cloudBuy.applePay"), t("cloudBuy.googlePay"), t("cloudBuy.card")].map(mark => <span key={mark} aria-hidden="true"
className="rounded-[6px] border-[0.5px] border-ink/20 px-1.5 py-px text-[11px] font-medium text-ink-secondary">{mark}</span>)}
diff --git a/src/components/cloud-buy/parts.tsx b/src/components/cloud-buy/parts.tsx
index 99fb8e88ba..0927057c7e 100644
--- a/src/components/cloud-buy/parts.tsx
+++ b/src/components/cloud-buy/parts.tsx
@@ -32,7 +32,7 @@ export function Heading({ title, sub }: { title: string; sub?: ReactNode }) {
export function BackLink({ label, onClick }: { label: string; onClick: () => void }) {
return <button type="button" onClick={onClick}
className="-ms-1.5 inline-flex items-center gap-0.5 self-start rounded-full py-1 pe-2.5 ps-1 text-[13px] leading-[18px] text-ink-secondary transition-colors hover:bg-ink/[0.06] hover:text-ink motion-reduce:transition-none">
- <ChevronLeft size={16} strokeWidth={1.5} aria-hidden="true" className="rtl:-scale-x-100" />{label}
+ <ChevronLeft size={16} aria-hidden="true" className="rtl:-scale-x-100" />{label}
</button>;
}
diff --git a/src/components/inbox/InboxPanel.tsx b/src/components/inbox/InboxPanel.tsx
index bb76510744..c323078c40 100644
--- a/src/components/inbox/InboxPanel.tsx
+++ b/src/components/inbox/InboxPanel.tsx
@@ -120,7 +120,7 @@ export function InboxPanel() {
? <p className="px-4 py-8 text-center text-[13px] text-ink-secondary">{t("inbox.noMatch")}</p>
: (
<div data-inbox-empty className="mx-auto flex max-w-[16rem] flex-col items-center px-4 py-10 text-center">
- <Inbox size={22} strokeWidth={1.5} aria-hidden="true" className="text-ink-tertiary" />
+ <Inbox size={22} aria-hidden="true" className="text-ink-tertiary" />
<p className="mt-3 text-[14px] font-medium text-ink">{t("inbox.empty")}</p>
<p className="mt-1 text-[13px] leading-[18px] text-ink-tertiary">{t("inbox.emptyHint")}</p>
</div>
diff --git a/src/components/menu-recipe.ts b/src/components/menu-recipe.ts
index 07ec831fab..bb2f5d79e2 100644
--- a/src/components/menu-recipe.ts
+++ b/src/components/menu-recipe.ts
@@ -1,4 +1,4 @@
-export const MENU_SHEET = "popover-surface flex flex-col gap-1 rounded-[var(--radius-menu)] border border-hairline/50 bg-menu p-1.5 shadow-lg [&_svg.lucide]:stroke-[1.5]";
+export const MENU_SHEET = "popover-surface flex flex-col gap-1 rounded-[var(--radius-menu)] border border-hairline/50 bg-menu p-1.5 shadow-lg";
export const MENU_ITEM = "flex min-h-[30px] w-full shrink-0 items-center gap-2 whitespace-nowrap rounded-md px-2 py-1.5 text-left text-[14px] leading-[18px] focus-visible:bg-menu-hover";
@@ -30,5 +30,3 @@ export const MENU_NOTE = "px-2 py-1 text-[12px] leading-4 text-ink-tertiary";
export const MENU_ICON = "shrink-0 text-ink-secondary";
export const MENU_TRAILING = "shrink-0 text-ink-tertiary rtl:-scale-x-100";
-
-export const MENU_STROKE = 1.75;
diff --git a/src/components/settings/DesktopKinds.tsx b/src/components/settings/DesktopKinds.tsx
index ccdb14869f..10943420b3 100644
--- a/src/components/settings/DesktopKinds.tsx
+++ b/src/components/settings/DesktopKinds.tsx
@@ -102,9 +102,9 @@ export function DesktopKinds() {
return (
<SettingsGroup label={t("settings.desktops.kinds")} block="desktops">
<SettingsRows icons>
- {row(cloudKind, t("settings.desktops.cloud"), t("settings.desktops.cloudLine"), <Cloud strokeWidth={1.75} />, () => go(ctx.plan && !cloud?.configured ? "plan" : "ai", ctx.plan && !cloud?.configured ? undefined : "ai-keys"), "cloud")}
- {!cloudHome && row(privateKind, t("settings.desktops.private"), t("settings.desktops.privateLine"), <Laptop strokeWidth={1.75} />, () => setSetup(true), "private")}
- {(ctx.advanced || vps?.configured) && row(serversKind, t("settings.desktops.servers"), t("settings.desktops.serversLine"), <Server strokeWidth={1.75} />, () => go("ai", "ai-keys"), "servers")}
+ {row(cloudKind, t("settings.desktops.cloud"), t("settings.desktops.cloudLine"), <Cloud />, () => go(ctx.plan && !cloud?.configured ? "plan" : "ai", ctx.plan && !cloud?.configured ? undefined : "ai-keys"), "cloud")}
+ {!cloudHome && row(privateKind, t("settings.desktops.private"), t("settings.desktops.privateLine"), <Laptop />, () => setSetup(true), "private")}
+ {(ctx.advanced || vps?.configured) && row(serversKind, t("settings.desktops.servers"), t("settings.desktops.serversLine"), <Server />, () => go("ai", "ai-keys"), "servers")}
</SettingsRows>
{setup && <PrivateSetup status={local} onCheck={load} onClose={() => setSetup(false)} />}
</SettingsGroup>
diff --git a/src/components/settings/SettingsNav.tsx b/src/components/settings/SettingsNav.tsx
index 5fa35510fb..957663c48e 100644
--- a/src/components/settings/SettingsNav.tsx
+++ b/src/components/settings/SettingsNav.tsx
@@ -21,7 +21,7 @@ import { isMacPlatform } from "@/lib/keyboard-shortcuts";
import { keySection, type KeyEntry } from "../keys/key-catalog";
import { HELP_CENTER_URL, desktopAppVersion } from "@/lib/app-links";
-export const NAV_ITEM = "relative flex h-8 w-full shrink-0 cursor-pointer items-center gap-2 rounded-lg px-2 text-left text-[13px] leading-5 text-ink transition-colors motion-reduce:transition-none focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-focus";
+export const NAV_ITEM = "relative flex h-8 w-full shrink-0 cursor-pointer items-center gap-2 rounded-lg px-[9px] py-[7px] text-left text-[13px] leading-5 text-ink transition-colors motion-reduce:transition-none focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-focus";
/** A place's badge as its rail circle draws it; with no colour of its own (This computer, or a Cloud in a browser) it is a
* quiet filled tile with an edge, so it never vanishes on the sheet. */
@@ -34,7 +34,7 @@ export function PlaceBadge({ place, size }: { place: Pick<SettingsPlace, "kind"
<span aria-hidden="true" data-place-badge={place.kind}
className="grid shrink-0 place-items-center bg-ink/[0.06] font-semibold leading-none text-ink-secondary shadow-[inset_0_0_0_0.5px_var(--settings-edge)]"
style={{ width: size, height: size, borderRadius: Math.round(size * 0.3), fontSize: Math.max(7, Math.round(size * 0.4)) }}>
- {place.kind === "computer" && !place.named ? <Laptop size={glyph} strokeWidth={1.75} /> : placeInitials(place.name)}
+ {place.kind === "computer" && !place.named ? <Laptop size={glyph} /> : placeInitials(place.name)}
</span>
);
}
@@ -107,7 +107,7 @@ function PageItem({ page, label, current, dot, onOpen }: { page: SettingsPage; l
return (
<button type="button" data-settings-page={page.id} data-settings-section={page.id} aria-current={current ? "page" : undefined} onClick={onOpen}
className={cn(NAV_ITEM, current ? "bg-menu-active font-medium" : "hover:bg-menu-hover")}>
- <span className="flex w-6 shrink-0 justify-center">{Icon && <Icon size={16} strokeWidth={1.75} aria-hidden="true" className={current ? "text-ink" : "text-ink-secondary"} />}</span>
+ <span className="flex w-6 shrink-0 justify-center">{Icon && <Icon size={16} aria-hidden="true" className={current ? "text-ink" : "text-ink-secondary"} />}</span>
<span className="grid min-w-0 flex-1 grid-cols-[minmax(0,1fr)] overflow-hidden" title={label}>
<span className="min-w-0 overflow-hidden text-ellipsis whitespace-nowrap [grid-area:1/1]">{label}</span>
<span aria-hidden="true" className="invisible h-0 min-w-0 overflow-hidden text-ellipsis whitespace-nowrap font-medium [grid-area:1/1]">{label}</span>
@@ -211,7 +211,7 @@ export function SettingsNav({ ctx, place, pages, current, query, hits, keyHits,
{group.map((page) => narrow ? (
<button key={page.id} type="button" data-settings-page={page.id} data-settings-section={page.id} onClick={() => onOpen(page.id)}
className="flex h-11 w-full cursor-pointer items-center gap-2 rounded-lg px-2 text-left text-[14px] leading-5 text-ink hover:bg-menu-hover">
- <span className="flex w-6 shrink-0 justify-center">{page.icon && <page.icon size={16} strokeWidth={1.75} aria-hidden="true" className="text-ink-secondary" />}</span>
+ <span className="flex w-6 shrink-0 justify-center">{page.icon && <page.icon size={16} aria-hidden="true" className="text-ink-secondary" />}</span>
<span className="min-w-0 flex-1 truncate">{t(page.labelKey)}</span>
{dot(page.id) && <span aria-hidden="true" className={cn("size-1.5 rounded-full", dot(page.id) === "success" ? "bg-success" : "bg-warning")} />}
<ChevronRight size={14} aria-hidden="true" className="text-ink-tertiary rtl:-scale-x-100" />
@@ -299,7 +299,7 @@ function HitRow({ ctx, place, hit, query, onHit }: { ctx: SettingsContext; place
return (
<button type="button" data-settings-hit={entry.id} onClick={() => onHit(hit)} title={full ? `${label} · ${full}` : label}
className="flex w-full cursor-pointer items-start gap-2 rounded-lg px-2 py-1.5 text-left hover:bg-menu-hover focus-visible:bg-menu-hover focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-focus">
- <span className="flex h-5 w-6 shrink-0 items-center justify-center text-ink-secondary">{Icon && <Icon size={16} strokeWidth={1.75} aria-hidden="true" />}</span>
+ <span className="flex h-5 w-6 shrink-0 items-center justify-center text-ink-secondary">{Icon && <Icon size={16} aria-hidden="true" />}</span>
<span className="flex min-w-0 flex-1 flex-col">
<span data-settings-hit-title="" className="line-clamp-2 text-[13px] leading-5 text-ink [overflow-wrap:anywhere]">{highlight(label, query)}</span>
{(where || tag) && (
diff --git a/src/components/settings/SettingsPageHeader.tsx b/src/components/settings/SettingsPageHeader.tsx
index 0cd499d98c..003c596603 100644
--- a/src/components/settings/SettingsPageHeader.tsx
+++ b/src/components/settings/SettingsPageHeader.tsx
@@ -65,7 +65,7 @@ export function SettingsPageHeader({ page, ctx, place, narrow, missing }: {
return (
// No fill and not sticky: on a glass skin any opaque fill reads as a white block over the sheet.
<header data-settings-header="" className={cn("flex flex-col gap-1 pb-5", narrow ? "px-8 pt-1" : "pl-4 pt-4")}>
- {!narrow && <h2 id="settings-page-title" className="truncate text-[18px] font-semibold leading-6 tracking-[-0.01em] text-ink">{title}</h2>}
+ {!narrow && <h2 id="settings-page-title" className="truncate text-[17px] font-semibold leading-6 tracking-[-0.01em] text-ink">{title}</h2>}
<ScopeLine page={page} ctx={ctx} place={place} />
{intro && <p data-settings-intro={intro} className="text-[13px] leading-[18px] text-ink-secondary">{t(intro, { place: place.name, app: productName() })}</p>}
{missing && <p role="status" className="text-[13px] leading-[18px] text-ink-secondary">{t("settings.missingHere", { page: missing, place: place.name })}</p>}
diff --git a/src/components/settings/closed-scale.test.ts b/src/components/settings/closed-scale.test.ts
index df134ea6ab..6a01f7871b 100644
--- a/src/components/settings/closed-scale.test.ts
+++ b/src/components/settings/closed-scale.test.ts
@@ -8,7 +8,7 @@
import { readFileSync } from "node:fs";
import { describe, expect, it } from "vitest";
-const OFF_SCALE = /(?<![\w-])(?:border-hairline(?:\/\d+)?|bg-inset|leading-relaxed|leading-snug|leading-tight|(?:[pm][xytblr]?|gap(?:-[xy])?|space-[xy])-(?:2\.5|3\.5|0\.75|1\.25|9|10|11|14)|text-\[(?:9|10|15|17|19|22)px\])(?![\w\-./[])/g;
+const OFF_SCALE = /(?<![\w-])(?:border-hairline(?:\/\d+)?|bg-inset|leading-relaxed|leading-snug|leading-tight|(?:[pm][xytblr]?|gap(?:-[xy])?|space-[xy])-(?:2\.5|3\.5|0\.75|1\.25|9|10|11|14)|text-\[(?:9|10|15|19|22)px\])(?![\w\-./[])/g;
const FILES = [
"src/components/AboutMeSettings.tsx",
@@ -107,7 +107,7 @@ const DEBT: Record<string, number> = {
"src/components/ImportSettings.tsx": 8,
"src/components/LocalComputerSection.tsx": 11,
"src/components/MacLocalControl.tsx": 2,
- "src/components/NewBotDialog.tsx": 11,
+ "src/components/NewBotDialog.tsx": 10,
"src/components/OrganizationSettings.tsx": 3,
"src/components/PhoneDevicesSection.tsx": 5,
"src/components/PlanUsage.tsx": 3,
@@ -126,7 +126,7 @@ const DEBT: Record<string, number> = {
"src/components/WorkspaceBackupSettings.tsx": 1,
"src/components/keys/KeyRow.tsx": 3,
"src/components/keys/KeysPage.tsx": 2,
- "src/components/usage/TraceWaterfall.tsx": 15,
+ "src/components/usage/TraceWaterfall.tsx": 14,
};
describe("Settings' closed scales (§6.8)", () => {
diff --git a/src/components/settings/pages/AppPages.tsx b/src/components/settings/pages/AppPages.tsx
index 74caf86dd4..e91923d4f7 100644
--- a/src/components/settings/pages/AppPages.tsx
+++ b/src/components/settings/pages/AppPages.tsx
@@ -105,7 +105,7 @@ function PlacesFromHere() {
<button type="button" className="ui-button" data-place-switch={other.key} onClick={other.open}>{t("servers.switch")}</button>
</SettingRow>
))}
- {workspaces.add && <SettingsLinkRow title={t("connect.title")} leading={<span className="flex size-8 items-center justify-center rounded-full bg-ink/[0.05] text-ink-secondary"><Plus size={18} strokeWidth={1.75} aria-hidden="true" /></span>}
+ {workspaces.add && <SettingsLinkRow title={t("connect.title")} leading={<span className="flex size-8 items-center justify-center rounded-full bg-ink/[0.05] text-ink-secondary"><Plus size={18} aria-hidden="true" /></span>}
onClick={() => void workspaces.add?.("address")} data={{ "data-server-connect": "" }} />}
</SettingsRows>
</SettingsGroup>
diff --git a/src/components/touch-actions.test.ts b/src/components/touch-actions.test.ts
index 1ceb08f4c8..5ec276712f 100644
--- a/src/components/touch-actions.test.ts
+++ b/src/components/touch-actions.test.ts
@@ -14,8 +14,8 @@ const styles = readFileSync(stylesPath, "utf8");
// Keyed by file and a class-string snippet, so a stale entry fails instead of silently widening.
const notActions: Array<{ file: string; snippet: string; why: string }> = [
- { file: "components/ChatView.tsx", snippet: "self-end pb-1 text-[11px] tabular-nums", why: "message timestamp, informational" },
- { file: "components/RoomTextMessage.tsx", snippet: "self-end pb-1 text-[11px] tabular-nums", why: "message timestamp, informational" },
+ { file: "components/ChatView.tsx", snippet: "self-end pb-1 text-[12px] font-medium leading-4 tabular-nums", why: "message timestamp, informational" },
+ { file: "components/RoomTextMessage.tsx", snippet: "self-end pb-1 text-[12px] font-medium leading-4 tabular-nums", why: "message timestamp, informational" },
{ file: "components/ScreenFrame.tsx", snippet: "group-hover/image:opacity-100", why: "aria-hidden zoom hint; the whole image is the tap target" },
{ file: "components/AttachmentPreview.tsx", snippet: "group-hover/image:opacity-100", why: "zoom hint; the whole image is the tap target" },
{ file: "components/remote-desktop-panel.tsx", snippet: "bg-black/65 py-2", why: "caption; the whole preview is the tap target" },
diff --git a/src/components/whats-new/TeamsPopup.tsx b/src/components/whats-new/TeamsPopup.tsx
index c2f73e632d..ea3f296e79 100644
--- a/src/components/whats-new/TeamsPopup.tsx
+++ b/src/components/whats-new/TeamsPopup.tsx
@@ -100,7 +100,7 @@ export function TeamsPopup({ action, onStep, onStart, onDone }: {
<h2 id={TITLE} className="mt-1 text-[19px] font-semibold leading-6 tracking-[-0.012em] text-ink [text-wrap:balance]">{t("teamsNew.title")}</h2>
<ul className="mt-3 flex flex-col gap-2 text-[14px] leading-5 text-ink">
{POINTS.map(({ icon: Icon, text }) => <li key={text} className="flex items-start gap-2.5">
- <span className="mt-px flex size-[18px] shrink-0 items-center justify-center text-ink-secondary"><Icon size={16} strokeWidth={1.75} aria-hidden="true" /></span>
+ <span className="mt-px flex size-[18px] shrink-0 items-center justify-center text-ink-secondary"><Icon size={16} aria-hidden="true" /></span>
<span className="[text-wrap:pretty]">{t(text)}</span>
</li>)}
</ul>
diff --git a/src/components/widget/WidgetControls.tsx b/src/components/widget/WidgetControls.tsx
index 253773aded..f122e8665f 100644
--- a/src/components/widget/WidgetControls.tsx
+++ b/src/components/widget/WidgetControls.tsx
@@ -56,7 +56,7 @@ export function WidgetGlyph({ name, size = 16, className }: { name: unknown; siz
);
}
const Icon = widgetIcon(name);
- return <Icon aria-hidden="true" size={size} strokeWidth={1.8} fill={widgetIconFilled(name) ? "currentColor" : "none"} className={cn("shrink-0", className)} />;
+ return <Icon aria-hidden="true" size={size} fill={widgetIconFilled(name) ? "currentColor" : "none"} className={cn("shrink-0", className)} />;
}
diff --git a/src/lib/bot-identity.test.ts b/src/lib/bot-identity.test.ts
index 2ccde808be..67c5349ddf 100644
--- a/src/lib/bot-identity.test.ts
+++ b/src/lib/bot-identity.test.ts
@@ -20,8 +20,8 @@ function skin(id: string): Record<string, string> {
}
describe("room speaker colors", () => {
- it("gives chat text a taller line box without changing the type size", () => {
- expect(css).toMatch(/\.chat-text,\s*\.chat-md\s*\{\s*line-height:\s*1\.75;/);
+ it("sets chat text on a 22px line in both modes without changing the type size", () => {
+ expect(css).toMatch(/\.chat-text,\s*\.chat-md\s*\{\s*line-height:\s*22px;/);
});
it("names each bot with a class that reads the skin token", () => {
diff --git a/src/lib/chat-width.test.ts b/src/lib/chat-width.test.ts
index 54a66d60a5..e4c81b883a 100644
--- a/src/lib/chat-width.test.ts
+++ b/src/lib/chat-width.test.ts
@@ -60,7 +60,7 @@ describe("chat width", () => {
it("centers the transcript and the composer in one column, in a chat and in a room", () => {
expect(css).toMatch(/\.chat-column \{[^}]*margin-inline: auto;[^}]*max-width: var\(--chat-column-max\);/);
- expect(css).toMatch(/\.chat-column-dock \{[^}]*margin-inline: auto;[^}]*max-width: calc\(var\(--chat-column-max\) \+ 2\.5rem\);/);
+ expect(css).toMatch(/\.chat-column-dock \{[^}]*margin-inline: auto;[^}]*max-width: calc\(var\(--chat-column-max\) \+ 2rem\);/);
for (const f of ["ChatView", "GroupView"]) {
const source = readFileSync(join(root, "components", `${f}.tsx`), "utf8");
expect(source, f).toMatch(/className="glass-scroller-content chat-column /);
diff --git a/src/lib/compact-chip.ts b/src/lib/compact-chip.ts
index 4b1a84e114..f8e21c15cb 100644
--- a/src/lib/compact-chip.ts
+++ b/src/lib/compact-chip.ts
@@ -1,7 +1,7 @@
// Plain literal strings so Tailwind's scanner sees every class.
export const COMPACT_BUBBLE =
- "@max-4xl/chathead:size-[30px] @max-4xl/chathead:justify-center @max-4xl/chathead:gap-0 @max-4xl/chathead:p-0";
+ "@max-4xl/chathead:size-9 @max-4xl/chathead:justify-center @max-4xl/chathead:gap-0 @max-4xl/chathead:p-0";
export const COMPACT_SQUARE =
- "@max-4xl/chathead:size-[30px] @max-4xl/chathead:justify-center @max-4xl/chathead:gap-0 @max-4xl/chathead:rounded-md @max-4xl/chathead:p-0";
+ "@max-4xl/chathead:size-9 @max-4xl/chathead:justify-center @max-4xl/chathead:gap-0 @max-4xl/chathead:rounded-md @max-4xl/chathead:p-0";
diff --git a/src/lib/control-scale.test.ts b/src/lib/control-scale.test.ts
index 01ed52f996..d5fc377a6d 100644
--- a/src/lib/control-scale.test.ts
+++ b/src/lib/control-scale.test.ts
@@ -33,7 +33,7 @@ describe("control scale", () => {
it("gives pills, chips, code and menu rows one size each", () => {
expect(rule(".ui-pill")).toMatchObject({ "min-height": "1.75rem", "border-radius": "9999px", "font-size": "13px", "font-weight": "500", "line-height": "1.25rem", "align-items": "center" });
expect(rule(".ui-chip")).toMatchObject({ "min-height": "1.375rem", "border-radius": "9999px", "font-size": "12px", "font-weight": "500", "line-height": "1rem" });
- expect(rule(".ui-code-chip")).toMatchObject({ "box-decoration-break": "clone", "font-family": "var(--font-mono)", "font-size": "0.86em", "line-height": "1" });
+ expect(rule(".ui-code-chip")).toMatchObject({ "box-decoration-break": "clone", "font-family": "var(--font-mono)", "font-size": "0.93em", "line-height": "1" });
expect(rule(".ui-menu-row")).toMatchObject({ "min-height": "30px", "border-radius": "0.375rem", "font-size": "14px", "line-height": "18px", gap: "0.5rem" });
});
diff --git a/src/lib/glass-surface.test.ts b/src/lib/glass-surface.test.ts
index 25f321eede..e2a7ded411 100644
--- a/src/lib/glass-surface.test.ts
+++ b/src/lib/glass-surface.test.ts
@@ -45,7 +45,7 @@ describe("glass surface", () => {
const size = rule('.glass-popup-frame[data-settings-sheet][data-settings-look="simple"] > .glass-popup');
expect(size).toContain("width: min(920px, 100%)");
expect(size).toContain("height: min(720px, 100%)");
- expect(size).toContain("border-radius: 16px");
+ expect(size).toContain("border-radius: 14px");
});
it("falls back to the opaque menu colour when transparency is reduced", () => {
diff --git a/src/lib/theme/runtime.dom.test.ts b/src/lib/theme/runtime.dom.test.ts
index dd9539b3b5..2e8461e9e3 100644
--- a/src/lib/theme/runtime.dom.test.ts
+++ b/src/lib/theme/runtime.dom.test.ts
@@ -76,3 +76,14 @@ it("follows the system's light or dark change while a theme with both blocks is
expect(appColor()).toBe(canvas);
}
});
+
+it("drops the interface tracking for a theme with its own font, and brings it back when the theme comes off", async () => {
+ const root = document.documentElement;
+ await wear({ name: "Serif", font: "Georgia, serif" }, "daylight");
+ expect(root.style.getPropertyValue("--font-sans")).toBe("Georgia, serif");
+ expect(root.style.getPropertyValue("--tracking-ui")).toBe("0");
+ const runtime = await import("./runtime");
+ runtime.wearTheme({ id: "plain", theme: { name: "Plain", accent: "#d97757" } });
+ expect(root.style.getPropertyValue("--font-sans")).toBe("");
+ expect(root.style.getPropertyValue("--tracking-ui")).toBe("");
+});
diff --git a/src/lib/theme/runtime.ts b/src/lib/theme/runtime.ts
index c1ce9b0d3e..6750ceeaa4 100644
--- a/src/lib/theme/runtime.ts
+++ b/src/lib/theme/runtime.ts
@@ -89,7 +89,8 @@ function paint(): void {
}
if (theme.font) {
root.style.setProperty("--font-sans", theme.font);
- painted.push("--font-sans");
+ root.style.setProperty("--tracking-ui", "0");
+ painted.push("--font-sans", "--tracking-ui");
}
root.dataset.theme = worn!.id;
applyThemeCss(theme.css ?? "");
diff --git a/src/styles.css b/src/styles.css
index 8527e26c6f..1590b185f1 100644
--- a/src/styles.css
+++ b/src/styles.css
@@ -192,6 +192,8 @@
/* Some engines map `ui-monospace` to a proportional face, so concrete names come first. */
--font-mono: "Geist Mono Variable", "SF Mono", SFMono-Regular, ui-monospace, Menlo,
Consolas, "Liberation Mono", monospace;
+ /* Geist's wght axis runs 100–900, so text sits between Regular and Medium; a static face rounds it to 400. */
+ --font-weight-normal: 415;
--shadow-lg: 0 6px 16px -8px rgb(0 0 0 / 0.18), 0 1px 3px rgb(0 0 0 / 0.06);
--shadow-xl: 0 10px 28px -12px rgb(0 0 0 / 0.24), 0 2px 6px -2px rgb(0 0 0 / 0.08);
@@ -215,6 +217,9 @@
/* Menus; a phone rounds them like its sheets. */
--radius-menu: 12px;
}
+:root[data-font] {
+ --tracking-ui: 0;
+}
:root[data-chat-width="wide"] {
--chat-bubble-max: 64rem;
--chat-bubble-pct: 92%;
@@ -232,6 +237,8 @@
:root {
--code-color-scheme: dark;
+ /* +0.012em suits Geist; a skin or a font choice with another face sets 0. */
+ --tracking-ui: 0.012em;
/* ink carried by a filled accent / danger surface (see the rule at the
bottom of this file, which is what makes them take effect) */
--color-accent-ink: #ffffff;
@@ -292,6 +299,7 @@
--font-sans: "Geist Variable", -apple-system, BlinkMacSystemFont,
"Segoe UI", system-ui, sans-serif;
+ --tracking-ui: 0.012em;
/* One radius scale, shared with Daylight. What takes which step: buttons
and pills full; keycaps, chips and menu rows 6; fields, controls and
sidebar rows 8; cards and menus 12; dialogs 16; bubbles and the cards in
@@ -369,6 +377,7 @@
/* System faces rather than Geist: paper reads as the platform's own. */
--font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
Roboto, sans-serif;
+ --tracking-ui: 0;
--radius-lg: 6px;
--radius-xl: 10px;
--radius-xs: 2px; --radius-sm: 4px; --radius-md: 6px;
@@ -444,6 +453,7 @@
--font-sans: "Geist Variable", -apple-system, BlinkMacSystemFont,
"Segoe UI", system-ui, sans-serif;
+ --tracking-ui: 0.012em;
--radius-lg: 4px;
--radius-xl: 8px;
--radius-xs: 2px; --radius-sm: 4px; --radius-md: 6px;
@@ -526,6 +536,7 @@
--font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
Roboto, sans-serif;
+ --tracking-ui: 0;
--radius-lg: 8px;
--radius-xl: 14px;
--radius-xs: 2px; --radius-sm: 4px; --radius-md: 6px;
@@ -588,6 +599,7 @@
--font-sans: "Geist Variable", -apple-system, BlinkMacSystemFont,
"Segoe UI", system-ui, sans-serif;
+ --tracking-ui: 0.012em;
--radius-lg: 6px;
--radius-xl: 10px;
--radius-xs: 2px; --radius-sm: 4px; --radius-md: 6px;
@@ -650,6 +662,7 @@
--font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
Roboto, sans-serif;
+ --tracking-ui: 0;
--radius-lg: 8px;
--radius-xl: 12px;
--radius-xs: 2px; --radius-sm: 4px; --radius-md: 6px;
@@ -711,6 +724,7 @@
--font-sans: "Geist Variable", -apple-system, BlinkMacSystemFont,
"Segoe UI", system-ui, sans-serif;
+ --tracking-ui: 0.012em;
--radius-lg: 8px;
--radius-xl: 12px;
--radius-xs: 2px; --radius-sm: 4px; --radius-md: 6px;
@@ -787,6 +801,7 @@
--font-sans: "Geist Variable", -apple-system, BlinkMacSystemFont,
"Segoe UI", system-ui, sans-serif;
+ --tracking-ui: 0.012em;
--radius-xs: 2px;
--radius-sm: 4px;
--radius-md: 6px;
@@ -854,6 +869,7 @@
--font-sans: "Geist Variable", -apple-system, BlinkMacSystemFont,
"Segoe UI", system-ui, sans-serif;
+ --tracking-ui: 0.012em;
--radius-lg: 10px;
--radius-xl: 16px;
--radius-xs: 2px; --radius-sm: 4px; --radius-md: 6px;
@@ -918,6 +934,7 @@
--font-sans: "Plus Jakarta Sans", ui-rounded, "SF Pro Rounded", "Geist Variable",
-apple-system, system-ui, "Segoe UI", sans-serif;
+ --tracking-ui: 0;
--radius-lg: 12px;
--radius-xl: 18px;
--radius-xs: 2px; --radius-sm: 4px; --radius-md: 6px;
@@ -975,6 +992,7 @@
--font-sans: "Geist Variable", -apple-system, BlinkMacSystemFont,
"Segoe UI", system-ui, sans-serif;
+ --tracking-ui: 0.012em;
--radius-lg: 8px;
--radius-xl: 12px;
--radius-xs: 2px; --radius-sm: 4px; --radius-md: 6px;
@@ -1032,6 +1050,7 @@
--font-sans: "Geist Variable", -apple-system, BlinkMacSystemFont,
"Segoe UI", system-ui, sans-serif;
+ --tracking-ui: 0.012em;
--radius-lg: 8px;
--radius-xl: 12px;
--radius-xs: 2px; --radius-sm: 4px; --radius-md: 6px;
@@ -1092,6 +1111,7 @@
--font-sans: "Geist Variable", -apple-system, BlinkMacSystemFont,
"Segoe UI", system-ui, sans-serif;
+ --tracking-ui: 0.012em;
--radius-xs: 2px;
--radius-sm: 4px;
--radius-md: 6px;
@@ -1121,7 +1141,7 @@
}
/* Lucide draws at 2px by default, heavy beside Geist; one lighter stroke for every icon left at that default. */
:where(svg.lucide[stroke-width="2"]) {
- stroke-width: 1.75;
+ stroke-width: 1.9;
}
:root[data-skin="midnight"] .popover-surface {
box-shadow: 0 14px 32px -10px rgb(0 0 0 / 0.7), 0 2px 8px rgb(0 0 0 / 0.35);
@@ -1203,9 +1223,7 @@
text-align: start;
}
-/* Chat copy. 15px stays; the line box goes from Tailwind's leading-relaxed
- (1.625) to 1.75 so Arabic and Latin both get a little more air without
- moving the surrounding chrome. Arabic and Hebrew use a local face when
+/* Chat copy: 15px on a 22px line in both modes. Arabic and Hebrew use a local face when
the machine has one. Geist and the UI stack do not carry those glyphs,
and a generic family listed later would otherwise win. */
@font-face {
@@ -1236,16 +1254,12 @@
.chat-text,
.chat-md {
- line-height: 1.75;
+ line-height: 22px;
font-family: "omb-chat", var(--font-sans);
}
.chat-md :is(strong, b) {
font-weight: 600;
}
-[data-chat-bubble="simple"] :is(.chat-md, .chat-text),
-[data-chat-bubble="simple"].chat-text {
- line-height: 22px;
-}
[data-chat-bubble="simple"] .chat-md > * + * {
margin-top: 10px;
}
@@ -1254,10 +1268,10 @@
.chat-md :is(p, li, blockquote) {
text-wrap: pretty;
}
-[data-chat-bubble="simple"] .chat-md > * + .md-heading {
+.chat-md > * + .md-heading {
margin-top: 18px;
}
-[data-chat-bubble="simple"] .chat-md > .md-heading:first-child {
+.chat-md > .md-heading:first-child {
margin-top: 0;
}
/* A short line keeps the tight chat bubble; a structured reply gets room to breathe. */
@@ -1303,8 +1317,8 @@
[data-simple-rows] > [data-tuck] > :first-child {
margin-top: -4px;
}
-/* Arabic and Hebrew script needs the taller line the rest of the app gives it. */
-[data-chat-bubble="simple"] .chat-md [dir="rtl"] {
+/* Arabic and Hebrew script needs a taller line than Latin. */
+.chat-md [dir="rtl"] {
line-height: 1.75;
}
@@ -1377,6 +1391,9 @@ body {
background-color: var(--color-app);
color: var(--color-ink);
font-family: var(--font-sans);
+ font-weight: var(--font-weight-normal);
+ /* Declared once here, so an em value resolves at 16px and every size below inherits the same ~0.19px. */
+ letter-spacing: var(--tracking-ui);
/* Chromium on macOS thickens every stem under the default (`auto`)
smoothing, so regular text reads close to semibold on dark skins.
Windows ignores both properties. */
@@ -1438,7 +1455,7 @@ body {
.ui-button-pill {
border-radius: 9999px;
font-size: 14px;
- font-weight: 400;
+ font-weight: var(--font-weight-normal);
line-height: 1.25rem;
}
.ui-button-lg {
@@ -1501,11 +1518,12 @@ body {
an inline background already centers on the glyphs, and `clone` keeps
the padding on every wrapped piece. */
.ui-code-chip {
- padding: 0.125em 0.35em;
+ padding: 0 0.27em;
border-radius: 0.25rem;
- background: color-mix(in srgb, var(--color-ink) 8%, transparent);
+ background: color-mix(in srgb, var(--color-ink) 4%, transparent);
+ color: var(--color-ink-secondary);
font-family: var(--font-mono);
- font-size: 0.86em;
+ font-size: 0.93em;
line-height: 1;
-webkit-box-decoration-break: clone;
box-decoration-break: clone;
@@ -1521,7 +1539,7 @@ body {
border-radius: 0.375rem;
text-align: left;
font-size: 14px;
- font-weight: 400;
+ font-weight: var(--font-weight-normal);
line-height: 18px;
}
.ui-menu-row:enabled:hover { background: var(--color-menu-hover); }
@@ -1891,7 +1909,7 @@ body {
.glass-popup-frame[data-settings-sheet][data-settings-look="simple"] > .glass-popup {
width: min(920px, 100%);
height: min(720px, 100%);
- border-radius: 16px;
+ border-radius: 14px;
}
}
@@ -2010,7 +2028,7 @@ body {
padding-bottom: calc(var(--glass-bottom, 0px) + var(--glass-bottom-reach, 0px));
}
/* The transcript and its composer share one centered column with a fixed cap. The transcript sits
- inside the scroller's px-5; the dock spans the pane and holds the composer's own px-5, so it adds
+ inside the scroller's px-4; the dock spans the pane and holds the composer's own px-4, so it adds
that padding to the same cap and the composer's edges meet the transcript's. */
.chat-column {
margin-inline: auto;
@@ -2018,7 +2036,7 @@ body {
}
.chat-column-dock {
margin-inline: auto;
- max-width: calc(var(--chat-column-max) + 2.5rem);
+ max-width: calc(var(--chat-column-max) + 2rem);
}
@media (prefers-reduced-transparency: reduce) {
.glass-bar::before {
@@ -3308,7 +3326,10 @@ button:disabled.bg-danger {
}
/* lucide writes stroke-width="2" as an attribute, which any CSS outranks; an explicit strokeWidth prop is left alone. */
:where(svg.lucide[stroke-width="2"]) {
- stroke-width: 1.75;
+ stroke-width: 1.9;
+ }
+ :where(code, pre, kbd, samp, .font-mono) {
+ letter-spacing: 0;
}
}