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 Use vitest globals (#27102) 2023-09-27 04:37:13 +00:00
standalone Enforce trailing comma in JS on multiline (#30002) 2024-03-22 14:06:53 +00:00
utils Fix broken image when editing comment with non-image attachments (#32319) (#32345) 2024-11-02 13:34:09 +08:00
vendor Vendor jquery.are-you-sure with strict mode fixes (#26901) 2023-09-06 00:02:44 +00:00
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 Avoid duplicate JS error messages on UI (#28873) 2024-01-21 14:23:08 +00:00
htmx.js Auto-update the system status in admin dashboard (#29163) 2024-02-16 02:52:25 +00:00
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 Forbid variables containing jQuery collections not having the $ prefix (#29839) 2024-03-16 12:22:16 +00:00
svg.js Update JS any PY dependencies, remove workarounds (#30085) 2024-03-26 09:41:40 +00:00
svg.test.js Use vitest globals (#27102) 2023-09-27 04:37:13 +00:00
utils.js enforce maxlength in frontend (#29389) 2024-02-25 14:31:15 +00:00
utils.test.js Use vitest globals (#27102) 2023-09-27 04:37:13 +00:00
vitest.setup.js Move vitest setup file to root (#29097) 2024-02-08 20:07:02 +08:00