Skip to content

Commit cea16d9

Browse files
JusterZhuclaude
andcommitted
fix(docs): allow zooming out from initial auto-fit scale in mermaid modal
Changed panzoom contain from 'outside' to false so users can freely zoom out beyond the auto-fit size. Also reduced minScale to 0.05 to allow more zoom-out range. Co-Authored-By: Claude <noreply@anthropic.com>
1 parent f4570b1 commit cea16d9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

website/src/theme/Mermaid/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ function MermaidRenderResult({ renderResult }) {
4141

4242
const instance = panzoom(svgEl, {
4343
maxScale: 10,
44-
minScale: 0.1,
44+
minScale: 0.05,
4545
step: 0.15,
46-
contain: 'outside',
46+
contain: false,
4747
pinchAndPan: true,
4848
});
4949
instanceRef.current = instance;

0 commit comments

Comments
 (0)