Skip to content
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

fix(callouts): When there are two or more nested callouts, the max-height of the parent callout may be incorrect when expanded. #1233

Open
wants to merge 3 commits into
base: v4
Choose a base branch
from

Conversation

SockingPanda
Copy link

(Official website example)[https://quartz.jzhao.xyz/features/callouts#:~:text=Yes!%2C%20they%20can.%20And%20collapsed!]
When clicking "Can callouts be nested?" twice and then clicking on its child callout, the max-height of [!question] does not change correctly. (I also tested this locally, and it's the same.)

[!question]+
Can callouts be nested?

[!todo]+ Callouts1

[!example]- Callouts2
You can even use multiple layers of nesting.

Reason: After a child callout is interacted with, it will traverse up the entire callout tree from the current callout being operated on to update the max-height of all parent callouts, but it fails to traverse correctly. The child callout is located one level below the callout-content, not directly below the callout.

@SockingPanda SockingPanda deleted the branch jackyzha0:v4 June 24, 2024 22:41
@SockingPanda SockingPanda deleted the v4 branch June 24, 2024 22:41
@SockingPanda SockingPanda restored the v4 branch June 24, 2024 22:49
@SockingPanda SockingPanda reopened this Jun 24, 2024
This commit applies Prettier formatting to 'callout.inline.ts' to resolve code style issues identified by the CI checks.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant