fix(assets): prevent mermaid render temp div from expanding body height

Pass the host element as container to mermaid.render() so the temporary
render div is created inside the element instead of document.body.
This commit is contained in:
Cell
2026-06-27 22:58:49 +08:00
parent d076ebf2e1
commit 1012fdc240
3 changed files with 4 additions and 5 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
{{- hugo.Store.Set "version" "v1.0.0-mqw63fvq" -}}
{{- hugo.Store.Set "version" "v1.0.0-mqwhji8o" -}}
{{- .Store.Set "this" dict -}}
{{- partial "init/detection-env.html" . -}}