0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-02-07 11:54:34 +01:00
gitea/web_src/js
Giteabot 62d8433194
Fix mermaid diagram height when initially hidden (#32457) (#32464)
Backport #32457 by @silverwind

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">

Co-authored-by: silverwind <me@silverwind.io>
2024-11-11 04:05:42 +08:00
..
components Fix checkbox bug on private/archive filter (#32236) (#32240) 2024-10-11 21:13:09 +08:00
features Fix broken image when editing comment with non-image attachments (#32319) (#32345) 2024-11-02 13:34:09 +08:00
markup Fix mermaid diagram height when initially hidden (#32457) (#32464) 2024-11-11 04:05:42 +08:00
modules Fix navbar + menu flashing on page load (#31281) (#31342) 2024-06-12 15:26:04 +00:00
render
standalone
utils Fix broken image when editing comment with non-image attachments (#32319) (#32345) 2024-11-02 13:34:09 +08:00
vendor
webcomponents Fix overflow menu flickering on mobile (#31484) (#31488) 2024-06-26 01:13:04 +08:00
bootstrap.js Check if reverse proxy is correctly configured (#30890) (#30935) 2024-05-10 12:34:04 +00:00
bootstrap.test.js
htmx.js
index.js Warn users when they try to use a non-root-url to sign in/up (#32272) (#32273) 2024-10-17 09:01:44 +08:00
jquery.js
svg.js
svg.test.js
utils.js
utils.test.js
vitest.setup.js