Skip to content
Snippets Groups Projects
Unverified Commit cded1404 authored by Timothy Carambat's avatar Timothy Carambat Committed by GitHub
Browse files

inherit font size from UI for thoughts (#3099)

parent a4d5b258
No related branches found
No related tags found
No related merge requests found
...@@ -84,7 +84,7 @@ export const ThoughtChainComponent = forwardRef( ...@@ -84,7 +84,7 @@ export const ThoughtChainComponent = forwardRef(
<div className="flex-1 overflow-hidden"> <div className="flex-1 overflow-hidden">
{!isExpanded && !autoExpand ? ( {!isExpanded && !autoExpand ? (
<span <span
className="text-xs text-theme-text-secondary font-mono inline-block w-full" className="text-theme-text-secondary font-mono inline-block w-full"
dangerouslySetInnerHTML={{ dangerouslySetInnerHTML={{
__html: DOMPurify.sanitize( __html: DOMPurify.sanitize(
truncate(tagStrippedContent, THOUGHT_PREVIEW_LENGTH) truncate(tagStrippedContent, THOUGHT_PREVIEW_LENGTH)
...@@ -93,7 +93,7 @@ export const ThoughtChainComponent = forwardRef( ...@@ -93,7 +93,7 @@ export const ThoughtChainComponent = forwardRef(
/> />
) : ( ) : (
<span <span
className="text-xs text-theme-text-secondary font-mono inline-block w-full" className="text-theme-text-secondary font-mono inline-block w-full"
dangerouslySetInnerHTML={{ dangerouslySetInnerHTML={{
__html: DOMPurify.sanitize( __html: DOMPurify.sanitize(
renderMarkdown(tagStrippedContent) renderMarkdown(tagStrippedContent)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment