Skip to content

Commit ace5e32

Browse files
committed
chore(web): clarify conversation font fallback and spacing
1 parent f20762c commit ace5e32

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

‎apps/web/src/appearanceFonts.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ export function applyAppearanceFontVariables(
117117
root.style.fontSize = `${interfaceSize}px`;
118118
const conversationSize = clampConversationFontSize(preferences.sizeConversation, interfaceSize);
119119
root.style.setProperty("--font-size-conversation", `${conversationSize}px`);
120+
// Preserve existing fixed-pixel labels when following Interface; scale them
121+
// only when the conversation size is explicitly overridden.
120122
root.style.setProperty(
121123
"--font-scale-conversation",
122124
String(

‎apps/web/src/index.css‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1594,6 +1594,7 @@ code {
15941594
--text-xl: calc(var(--conversation-text-unit) * 1.25);
15951595
--text-2xl: calc(var(--conversation-text-unit) * 1.5);
15961596
--text-3xl: calc(var(--conversation-text-unit) * 1.875);
1597+
15971598
font-size: var(--conversation-text-unit);
15981599
}
15991600
}

0 commit comments

Comments
 (0)