gitea/web_src/js/markup
silverwind b55a31eb6a
Fix mermaid diagram height when initially hidden (#32457)
In a hidden iframe, `document.body.clientHeight` is not reliable. Use
`IntersectionObserver` to detect the visibility change and update the
height there.

Fixes: https://github.com/go-gitea/gitea/issues/32392

<img width="885" alt="image"
src="https://github.com/user-attachments/assets/a95ef6aa-27e7-443f-9d06-400ef27919ae">
2024-11-09 20:03:55 +02:00
..
anchors.ts Convert frontend code to typescript (#31559) 2024-07-07 15:32:30 +00:00
asciicast.ts Convert frontend code to typescript (#31559) 2024-07-07 15:32:30 +00:00
codecopy.ts Convert frontend code to typescript (#31559) 2024-07-07 15:32:30 +00:00
common.ts Convert frontend code to typescript (#31559) 2024-07-07 15:32:30 +00:00
content.ts Convert frontend code to typescript (#31559) 2024-07-07 15:32:30 +00:00
html2markdown.test.ts Support quote selected comments to reply (#32431) 2024-11-07 03:57:07 +00:00
html2markdown.ts Support quote selected comments to reply (#32431) 2024-11-07 03:57:07 +00:00
math.ts Convert frontend code to typescript (#31559) 2024-07-07 15:32:30 +00:00
mermaid.ts Fix mermaid diagram height when initially hidden (#32457) 2024-11-09 20:03:55 +02:00
tasklist.ts Convert frontend code to typescript (#31559) 2024-07-07 15:32:30 +00:00