Fix spoiler animation overlay and wrapped-line clipping#5
Open
Bharathboy1 wants to merge 1 commit into
Open
Conversation
Co-authored-by: Copilot <copilot@github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Canvas positioning and DOM management:
SpoilerSpancontainer rather than absolutely on the page, ensuring correct alignment regardless of page scroll or layout changes. All calculations for canvas placement and bounding boxes have been updated to use the container's coordinates. [1] [2] [3] [4] [5]TypeScript and code quality improvements:
!) to various class properties (such asel,slotElement,containerDiv, etc.) to satisfy TypeScript strict property initialization checks. [1] [2]Styling improvements:
overflow: hiddento the container's CSS to prevent particle effects from spilling outside the spoiler span.Improved bounding-box measurement so the effect tracks actual text fragments rather than treating wrapper elements as a full block.
Updated canvas repositioning logic to stay aligned with the spoiler text during scroll and layout updates.
Added overflow: hidden to the spoiler host so the effect is clipped to the spoiler’s own inline area.
Note: This is ai fix