authorgravatar for maria@kuuro.netmaria <maria@kuuro.net> 2026-09-20 19:10:16-03:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-09-20 19:10:16-03:00
logadcd90858c3bfece59095465d2f49860ba3dcea9
treea0b67bfd46487ee3adba77a187d1c4fc78afe71d
parentf6cc6bc7e9cbe1feeb7811ea92d519ad77c76596
signature Signed by PGP key B5690EEEBB952194

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


1 files changed, 5 insertions(+), 2 deletions(-)

apps/web/src/components/ChatMarkdown.tsx+5-2
...@@ -863,7 +863,10 @@ function MarkdownDetails({...@@ -863,7 +863,10 @@ function MarkdownDetails({
863 <span>{summary}</span>863 <span>{summary}</span>
864 </CollapsibleTrigger>864 </CollapsibleTrigger>
865 <CollapsiblePanel>865 <CollapsiblePanel>
866 <div className="pb-3 ps-6 text-foreground/80" data-markdown-details-content="">866 <div
867 className="pb-3 ps-6 text-foreground/[calc(80%+var(--appearance-contrast-boost)/5)]"
868 data-markdown-details-content=""
869 >
867 {content}870 {content}
868 </div>871 </div>
869 </CollapsiblePanel>872 </CollapsiblePanel>
...@@ -3332,7 +3335,7 @@ function ChatMarkdown({...@@ -3332,7 +3335,7 @@ function ChatMarkdown({
3332 <div3335 <div
3333 ref={markdownRef}3336 ref={markdownRef}
3334 className={cn(3337 className={cn(
3335 "chat-markdown w-full min-w-0 text-sm leading-relaxed text-foreground/80 [overflow-wrap:anywhere] [word-break:break-word]",3338 "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]",
3336 className,3339 className,
3337 )}3340 )}
3338 // Gates the fade-in for blocks that arrive while the response streams.3341 // Gates the fade-in for blocks that arrive while the response streams.