From b7ee610dc95322b6714797f2a91abc0fa59ec408 Mon Sep 17 00:00:00 2001 From: Brooklyn Nicholson Date: Thu, 30 Jul 2026 05:41:00 -0500 Subject: [PATCH] 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; }