Commit 1094646c1 for llama.cpp

commit 1094646c1fb706b0bc7cf3569c707a173032a01d
Author: Aleksander Grygier <aleksander.grygier@gmail.com>
Date:   Mon Nov 23 16:21:45 2026 +0100

    ui: set code in messages at the size of the text around it (#32892)

    Inline code and code blocks were 14px next to 16px text. Llama Mono
    has Llama Sans's x-height, so the two read as one size without the
    mono being scaled down. The chat form's editor follows.

    Assisted-by: Claude (Opus 5.5 Medium)

diff --git a/ui/apps/chat/src/lib/components/app/content/MarkdownContent/markdown-content.css b/ui/apps/chat/src/lib/components/app/content/MarkdownContent/markdown-content.css
index 5e894d0ae..ed0bc932c 100644
--- a/ui/apps/chat/src/lib/components/app/content/MarkdownContent/markdown-content.css
+++ b/ui/apps/chat/src/lib/components/app/content/MarkdownContent/markdown-content.css
@@ -17,7 +17,7 @@
 	overflow-x: visible;
 	border-radius: 0;
 	border: none;
-	font-size: 0.875rem;
+	font-size: 1em;
 }

 /* Base typography styles */
@@ -92,13 +92,14 @@
 	opacity: 0.7;
 }

-/* Inline code */
+/* Inline code. Code is set at the size of the text around it, here and in the blocks below: Llama Mono
+   has Llama Sans's x-height, so the two read as one size without the mono being scaled down. */
 .markdown-content :global(code:not(pre code)) {
 	background: var(--surface-muted);
 	color: var(--fg-muted);
 	padding: 0.125rem 0.375rem;
 	border-radius: 0.375rem;
-	font-size: 0.875rem;
+	font-size: 1em;
 }

 .markdown-content :global(pre) {
@@ -358,7 +359,7 @@ div.markdown-user-content :global(.table-wrapper) {
 	margin: 0;
 	border-radius: 0;
 	border: none;
-	font-size: 0.875rem;
+	font-size: 1em;
 }

 /* Mentions and hashtags */
@@ -761,7 +762,7 @@ div.markdown-user-content :global(.table-wrapper) {
 	margin: 0;
 	border-radius: 0;
 	border: none;
-	font-size: 0.875rem;
+	font-size: 1em;
 }

 .markdown-content :global([data-view-mode='source'] .mermaid-scroll-container),
diff --git a/ui/apps/chat/src/lib/components/app/content/MarkdownEditor/MarkdownEditor.svelte b/ui/apps/chat/src/lib/components/app/content/MarkdownEditor/MarkdownEditor.svelte
index 756457482..3d5e0103e 100644
--- a/ui/apps/chat/src/lib/components/app/content/MarkdownEditor/MarkdownEditor.svelte
+++ b/ui/apps/chat/src/lib/components/app/content/MarkdownEditor/MarkdownEditor.svelte
@@ -89,7 +89,7 @@
 		{ fontStyle: 'italic', tag: tags.emphasis },
 		{ color: 'var(--fg-muted)', fontStyle: 'italic', tag: tags.quote },
 		{ opacity: '0.7', tag: tags.strikethrough, textDecoration: 'line-through' },
-		{ fontFamily: 'var(--font-mono)', fontSize: '0.875rem', tag: tags.monospace }
+		{ fontFamily: 'var(--font-mono)', tag: tags.monospace }
 	]);

 	// The markdown language alone: markdown() would also bring the html, css and
@@ -389,7 +389,6 @@
 	div :global(.cm-md-raw-code) {
 		padding-inline: 1rem;
 		font-family: var(--font-mono);
-		font-size: 0.875rem;
 		background: var(--surface-code);
 		border-inline: 1px solid color-mix(in oklch, var(--line-default) 30%, transparent);
 	}