Parcourir la source

chore: cleanup

Adam il y a 3 semaines
Parent
commit
cafc2b204b

+ 1 - 1
packages/ui/src/components/message-part.css

@@ -285,7 +285,7 @@
   [data-component="markdown"] {
     margin-top: 24px;
     font-style: normal;
-    font-size: inherit;
+    font-size: var(--font-size-base);
     color: var(--text-weak);
 
     strong,

+ 14 - 0
packages/ui/src/components/timeline-playground.stories.tsx

@@ -979,6 +979,20 @@ const CSS_CONTROLS: CSSControl[] = [
   },
 
   // --- Reasoning part ---
+  {
+    key: "reasoning-md-font-size",
+    label: "Reasoning font size",
+    group: "Reasoning Part",
+    type: "range",
+    initial: "14",
+    selector: '[data-component="reasoning-part"] [data-component="markdown"]',
+    property: "font-size",
+    min: "10",
+    max: "22",
+    step: "1",
+    unit: "px",
+    source: { file: MP, anchor: '[data-component="reasoning-part"]', prop: "font-size", format: px },
+  },
   {
     key: "reasoning-md-margin-top",
     label: "Reasoning markdown margin-top",