Add pan and zoom support for mermaid diagrams

This commit is contained in:
bugwz committed 2025-12-20 20:57:32 +08:00
1 parent c771efa9bc
commit dd2d051b3d
2 files changed
+202

No files matched your search

+7
View File
@@ -70,6 +70,13 @@ if hexo-config('mermaid.enable')
& > svg
height: 100%
max-width: 100%
cursor: grab
touch-action: none
user-select: none
&:active
cursor: grabbing
if hexo-config('mermaid.code_write')
pre > code.mermaid