Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

fix(web-app): scale chat message body text with zoom (#9665) (#9669)

Thinh Le0bed0395f96c
diff --git a/web-app/src/index.css b/web-app/src/index.css
index 8d6f17d07..502206be2 100644
--- a/web-app/src/index.css
+++ b/web-app/src/index.css
@@ -83,8 +83,14 @@
/* Chat message zoom. --font-size-base is set inline on this element; the scale
has to be redeclared here because the :root copies substitute the root's
--font-size-base before inheriting, so overriding it alone changes nothing
- for rules reading var(--text-*) (markdown.css). */
+ for rules reading var(--text-*) (markdown.css).
+
+ font-size is set here for the same reason: body's text-sm resolves to a
+ fixed length at the root, and message text with no text-* class of its own
+ (paragraphs, lists, the user bubble) inherits that length, so without this
+ the zoom reached only the elements that carry a class. */
.message-zoom {
+ font-size: var(--text-sm);
--text-xs: calc(var(--font-size-base) * 0.75);
--text-sm: calc(var(--font-size-base) * 0.875);
--text-base: var(--font-size-base);