fix(web): allow full contrast in assistant replies (#12405)

This commit is contained in:
maria authored and GitHub committed 2026-09-20 19:10:16 -03:00
1 parent f6cc6bc7e9
commit adcd90858c
1 file changed
+5 -2
+5 -2
View File
@@ -863,7 +863,10 @@ function MarkdownDetails({
<span>{summary}</span>
</CollapsibleTrigger>
<CollapsiblePanel>
<div className="pb-3 ps-6 text-foreground/80" data-markdown-details-content="">
<div
className="pb-3 ps-6 text-foreground/[calc(80%+var(--appearance-contrast-boost)/5)]"
data-markdown-details-content=""
>
{content}
</div>
</CollapsiblePanel>
@@ -3332,7 +3335,7 @@ function ChatMarkdown({
<div
ref={markdownRef}
className={cn(
"chat-markdown w-full min-w-0 text-sm leading-relaxed text-foreground/80 [overflow-wrap:anywhere] [word-break:break-word]",
"chat-markdown w-full min-w-0 text-sm leading-relaxed text-foreground/[calc(80%+var(--appearance-contrast-boost)/5)] [overflow-wrap:anywhere] [word-break:break-word]",
className,
)}
// Gates the fade-in for blocks that arrive while the response streams.