Elffuss BraidHub

kikocis/continue public

fix: update MermaidBlock styles for improved rendering and add foreignObject (#7960)

fix: update MermaidBlock styles for improved rendering and add foreignObject width

Co-authored-by: lixiaoyang1992 <lixiaoyang2345@gmail.com>
Changeset98c27377e91434f92ffa6ee44305ff02935620c7f79f4a5c820fc8900c617d5f
AuthorDallin Romney <dallinromney@gmail.com> · 2025-09-25 15:58 -07:00
CommitterGitHub <noreply@github.com> · 2025-09-25 15:58 -07:00
Parentsf636b4841cdd

Browse the files at this changeset

2 files changed

modified gui/src/components/StyledMarkdownPreview/MermaidBlock.tsx +1 −1
@@ -141,7 +141,7 @@
141141 {!!error ? (
142142 <div className="text-error whitespace-pre text-sm">{error}</div>
143143 ) : (
144- <div className="relative">
144+ <div className="mermaid relative">
145145 <div className="absolute right-0 z-10 m-2 flex items-center gap-x-1">
146146 <ToolTip content={"Zoom In"}>
147147 <MagnifyingGlassPlusIcon
modified gui/src/components/StyledMarkdownPreview/markdown.css +3 −0
@@ -1038,3 +1038,6 @@
10381038 .token.entity {
10391039 cursor: help;
10401040 }
1041+.mermaid foreignObject {
1042+ width: 100%;
1043+}