prevent-link-loss - Mount banner outside the fieldset - #9970
Open
Sebastien-Ahkrin wants to merge 2 commits into
Open
prevent-link-loss - Mount banner outside the fieldset#9970Sebastien-Ahkrin wants to merge 2 commits into
prevent-link-loss - Mount banner outside the fieldset#9970Sebastien-Ahkrin wants to merge 2 commits into
Conversation
prevent-link-loss): mount banner outside the fieldset
Contributor
Author
|
Tell me if something looks wrong ! |
Sebastien-Ahkrin
marked this pull request as ready for review
August 11, 2026 19:43
Member
|
Thanks! No conventional commit here by the way |
Contributor
Author
Oh ok ! Sorry, do you want me to rewrite my commits or its ok for this PR ? Sorry ! |
Member
|
No the commits don't matter but the PR title does 😭 |
prevent-link-loss): mount banner outside the fieldsetprevent-link-loss - Mount banner outside the fieldset
fregante
reviewed
Aug 11, 2026
| @@ -14,11 +14,10 @@ function attach(field: HTMLTextAreaElement): void { | |||
| // Editing PR body | |||
| '.CommentBox', | |||
Member
There was a problem hiding this comment.
Can you check the PR Conversation tab? New comment, editing comment, editing PR body. Those are the ones that use the old markup so this PR might break them
Contributor
Author
Ok sorry ! I updated it then ! |
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.
prevent-link-losswas mounting its banner directly inside the closestfieldsetor.CommentBoxelement. That result on github to a markdown editor with height at 0 hiding the comment textarea.Closes: #9955
Tested on Safari, Chrome and Firefox
Test done to make my fix
The height will be 0 if we put the Banner direclty inside the target.
Will result to :
target: FIELDSET MarkdownEditor-module__fieldSet__RU0NL height before: 215.38284301757812 height after: 0 textarea rect after: DOMRectCF : height after: 0
So the easier fix was to mount the banner as a sibling of the target instead of inside it
Test URLs
I will test with this link in my GIF :
https://github.com/refined-github/refined-github/pull/6954/commits/32d1c8b2e1b6971709fe273cfdd1f959b51e8d85issuesandbox#3Screenshot / GIF
Sorry for the screens they are at zoom 100% not 200% to see the entire feature. Hope this is still good
New issue form
New comment form
New review form
New review comment form