-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mermaid diagram does not work inside <details>
tag
#32392
Labels
issue/confirmed
Issue has been reviewed and confirmed to be present or accepted to be implemented
type/bug
Comments
silverwind
added
the
issue/confirmed
Issue has been reviewed and confirmed to be present or accepted to be implemented
label
Oct 31, 2024
silverwind
added a commit
to silverwind/gitea
that referenced
this issue
Nov 8, 2024
lafriks
pushed a commit
that referenced
this issue
Nov 9, 2024
In a hidden iframe, `document.body.clientHeight` is not reliable. Use `IntersectionObserver` to detect the visibility change and update the height there. Fixes: #32392 <img width="885" alt="image" src="https://github.com/user-attachments/assets/a95ef6aa-27e7-443f-9d06-400ef27919ae">
GiteaBot
pushed a commit
to GiteaBot/gitea
that referenced
this issue
Nov 10, 2024
In a hidden iframe, `document.body.clientHeight` is not reliable. Use `IntersectionObserver` to detect the visibility change and update the height there. Fixes: go-gitea#32392 <img width="885" alt="image" src="https://github.com/user-attachments/assets/a95ef6aa-27e7-443f-9d06-400ef27919ae">
lunny
pushed a commit
that referenced
this issue
Nov 10, 2024
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: #32392 <img width="885" alt="image" src="https://github.com/user-attachments/assets/a95ef6aa-27e7-443f-9d06-400ef27919ae"> Co-authored-by: silverwind <[email protected]>
DennisRasey
pushed a commit
to DennisRasey/forgejo
that referenced
this issue
Nov 16, 2024
In a hidden iframe, `document.body.clientHeight` is not reliable. Use `IntersectionObserver` to detect the visibility change and update the height there. Fixes: go-gitea/gitea#32392 <img width="885" alt="image" src="https://github.com/user-attachments/assets/a95ef6aa-27e7-443f-9d06-400ef27919ae"> (cherry picked from commit b55a31eb6a894feb5508e350ff5e9548b2531bd6)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
issue/confirmed
Issue has been reviewed and confirmed to be present or accepted to be implemented
type/bug
Description
Wrapping a mermaid diagram into a
<details>
tag causes its height to be invalid.To reproduce create a comment with following contents:
Reproduction on demo: https://demo.gitea.com/rijenkii/tjest/issues/2.
Gitea Version
1.23.0+dev-567-g9df5ddaf44
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
Git Version
No response
Operating System
No response
How are you running Gitea?
Demo
Database
None
The text was updated successfully, but these errors were encountered: