Commit afbcf11
committed
fix(mermaid): use absolute positioning for action buttons to fix clicks in nested scroll containers
Same fix as code-block (ab0a5ae): switches the mermaid block action button
wrapper from position:sticky to position:absolute so that hit-testing works
correctly in layouts with multiple nested overflow:auto scroll containers.
The mermaid block container already has position:relative, so only the
inner toolbar wrapper needed updating.
Fixes vercel#4941 parent ab0a5ae commit afbcf11
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
894 | 894 | | |
895 | 895 | | |
896 | 896 | | |
897 | | - | |
| 897 | + | |
898 | 898 | | |
899 | 899 | | |
900 | 900 | | |
| |||
0 commit comments