Add pan and zoom support for mermaid diagrams

This commit is contained in:
bugwz
2025-12-20 20:57:32 +08:00
parent c771efa9bc
commit dd2d051b3d
2 changed files with 202 additions and 0 deletions

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