From b7ee610dc95322b6714797f2a91abc0fa59ec408 Mon Sep 17 00:00:00 2001 From: Brooklyn Nicholson Date: Thu, 30 Jul 2026 05:41:00 -0500 Subject: [PATCH 1/2] fix(desktop): drop the doubled inset around highlighted code blocks --- apps/desktop/src/styles.css | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/apps/desktop/src/styles.css b/apps/desktop/src/styles.css index 9ddd8c2f304..0d8a8e23363 100644 --- a/apps/desktop/src/styles.css +++ b/apps/desktop/src/styles.css @@ -1549,6 +1549,13 @@ text-* variant utilities. */ .btn-arc { margin: 0 !important; } +/* react-shiki nests its own `pre.shiki` inside our `.aui-shiki` Pre, so the + code card's `[&_pre]` padding lands on both and doubles the inset. The outer + Pre already carries the card's padding — zero the inner one. */ +[data-slot='aui_assistant-message-content'] .aui-md .aui-shiki .shiki { + padding: 0 !important; +} + [data-slot='aui_assistant-message-content'] .aui-md .aui-md-table { border-spacing: 0; } From 1afe076dbfc02535a99ddc42d5e9a3e1a3c95930 Mon Sep 17 00:00:00 2001 From: Brooklyn Nicholson Date: Thu, 30 Jul 2026 05:48:20 -0500 Subject: [PATCH 2/2] fix(desktop): use the native Menlo/Monaco mono stack for code --- apps/desktop/src/styles.css | 10 +++++----- apps/desktop/src/themes/presets.ts | 5 ++--- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/apps/desktop/src/styles.css b/apps/desktop/src/styles.css index 0d8a8e23363..95eeebe29ac 100644 --- a/apps/desktop/src/styles.css +++ b/apps/desktop/src/styles.css @@ -386,12 +386,12 @@ 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji', emoji; /* Key caps always use the native UI face — never theme typography overrides. */ --dt-font-kbd: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif; - /* JetBrains Mono first — the face we bundle (@font-face above) and the - terminal's primary — so code/diff match the terminal on every platform - instead of drifting to a system Cascadia Code where it's installed. */ + /* Menlo/Monaco first — Apple's native monospace faces — so code/diff read + in the system mono on macOS, with SF Mono and bundled Courier Prime as + fallbacks. */ --dt-font-mono: - 'JetBrains Mono', 'Cascadia Code', 'SF Mono', ui-monospace, Menlo, Consolas, monospace, 'Apple Color Emoji', - 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji', emoji; + Menlo, Monaco, 'SF Mono', 'Courier Prime', monospace, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', + 'Noto Color Emoji', emoji; --dt-base-size: 1rem; --dt-line-height: 1.5; --dt-letter-spacing: 0; diff --git a/apps/desktop/src/themes/presets.ts b/apps/desktop/src/themes/presets.ts index 9cfb880c660..464381819f0 100644 --- a/apps/desktop/src/themes/presets.ts +++ b/apps/desktop/src/themes/presets.ts @@ -15,8 +15,7 @@ const SYSTEM_SANS = '"Segoe WPC", "Segoe UI", -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, sans-serif, ' + EMOJI_FALLBACK -const SYSTEM_MONO = - '"Cascadia Code", "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Monaco, Consolas, monospace, ' + EMOJI_FALLBACK +const SYSTEM_MONO = 'Menlo, Monaco, "SF Mono", "Courier Prime", monospace, ' + EMOJI_FALLBACK export const DEFAULT_TYPOGRAPHY: DesktopThemeTypography = { fontSans: SYSTEM_SANS, fontMono: SYSTEM_MONO } @@ -92,7 +91,7 @@ export const nousTheme: DesktopTheme = { }, typography: { fontSans: SYSTEM_SANS, - fontMono: `"Courier Prime", ${SYSTEM_MONO}`, + fontMono: SYSTEM_MONO, fontUrl: 'https://fonts.googleapis.com/css2?family=Courier+Prime:wght@400;700&display=swap' } }