From 8b143034685d3da43b9888d7391b41db356e12ef Mon Sep 17 00:00:00 2001 From: tmoonlight Date: Sun, 27 Sep 2026 23:37:56 +0800 Subject: [PATCH] Center Mermaid diagrams within chat content --- web/src/styles/globals.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/src/styles/globals.css b/web/src/styles/globals.css index 8c82fa96..ff9b511b 100644 --- a/web/src/styles/globals.css +++ b/web/src/styles/globals.css @@ -3221,6 +3221,10 @@ body { .ace-md .ace-copyable-code { margin: 6px 0; } +.ace-md .ace-mermaid-diagram[data-mermaid-diagram="ready"] { + margin-left: auto; + margin-right: auto; +} .ace-md .ace-copyable-code pre { margin: 0; }