Restructure alerts DOM to ensure proper positioning by Sartharon · Pull Request #3713 · PhantomBot/PhantomBot · GitHub
Skip to content

Restructure alerts DOM to ensure proper positioning#3713

Merged
gmt2001 merged 2 commits into
PhantomBot:masterfrom
Sartharon:master
Apr 19, 2026
Merged

Restructure alerts DOM to ensure proper positioning#3713
gmt2001 merged 2 commits into
PhantomBot:masterfrom
Sartharon:master

Conversation

@Sartharon

@Sartharon Sartharon commented Apr 19, 2026

Copy link
Copy Markdown
Contributor

Fixes image/gif alerts and text seemingly having an upper margin as they came after the main-video-clips container:

image

Blue: video container, Yellow: alerts container, Red: text container

The new DOM structure has the video and image alerts in the same container, hiding and showing them as needed.

The PR also ensures the added alert text will always visible by dynamically enforcing a max-height on the media objects based on the text containers height requirement to display the passed text

Additionally this PR renames some IDs and moves classes to IDs where suited

@gmt2001 gmt2001 enabled auto-merge April 19, 2026 14:47
@gmt2001 gmt2001 merged commit 7c52337 into PhantomBot:master Apr 19, 2026
8 checks passed
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jun 19, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants