aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/js/features/tribute.ts
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2024-11-09 19:03:55 +0100
committerGitHub <noreply@github.com>2024-11-09 20:03:55 +0200
commitb55a31eb6a894feb5508e350ff5e9548b2531bd6 (patch)
tree2c2c3d4978adb657a6bd0ab5b8a69c991a35befd /web_src/js/features/tribute.ts
parent18aeca53203adba7b4fb3b7311f0e77bef92e266 (diff)
downloadgitea-b55a31eb6a894feb5508e350ff5e9548b2531bd6.tar.gz
gitea-b55a31eb6a894feb5508e350ff5e9548b2531bd6.zip
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">
Diffstat (limited to 'web_src/js/features/tribute.ts')
0 files changed, 0 insertions, 0 deletions