Skip to content

Fix lock modal content rendering outside modal #15095

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

Merged
merged 3 commits into from
Mar 21, 2021

Conversation

silverwind
Copy link
Member

@silverwind silverwind commented Mar 21, 2021

Fix regression introduced by dc08195. A extraneous </div> caused .content to not be a child to .modal any more so it was rendering outside the actual modal.

Before

Screen Shot 2021-03-21 at 18 31 13

Screen Shot 2021-03-21 at 18 31 18

After

Screen Shot 2021-03-21 at 18 30 30

Screen Shot 2021-03-21 at 18 30 40

The .content was not a child to .modal so was rendering outside. This is
a recent regression but I'm not certain when it was introduced.
@silverwind
Copy link
Member Author

There seems to be another tag imbalance in the file, checking...

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Mar 21, 2021
@silverwind
Copy link
Member Author

Ok should be resolved.

The cause of the whole issue was the extra </div> between .header and .content introduced in dc08195#diff-dacece2bf48efcf3ffe10ecc5aa7166ec77341638c790a2521c29480311c1714R589.

@6543
Copy link
Member

6543 commented Mar 21, 2021

@silverwind thanks :) - will test

@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Mar 21, 2021
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Mar 21, 2021
@6543 6543 added the topic/ui Change the appearance of the Gitea UI label Mar 21, 2021
@6543 6543 merged commit 4fd6e82 into go-gitea:master Mar 21, 2021
silverwind added a commit to silverwind/gitea that referenced this pull request Mar 21, 2021
* Fix lock modal content rendering outside modal

The .content was not a child to .modal so was rendering outside. This is
a recent regression but I'm not certain when it was introduced.

* remove extraneous closing div
@6543 6543 added the backport/done All backports for this PR have been created label Mar 21, 2021
6543 pushed a commit that referenced this pull request Mar 22, 2021
* Fix lock modal content rendering outside modal

The .content was not a child to .modal so was rendering outside. This is
a recent regression but I'm not certain when it was introduced.

* remove extraneous closing div

Co-authored-by: zeripath <[email protected]>
@silverwind silverwind deleted the lockmodal branch March 22, 2021 17:52
@go-gitea go-gitea locked and limited conversation to collaborators May 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport/done All backports for this PR have been created lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. topic/ui Change the appearance of the Gitea UI type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants