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

Can’t choose branch for merge. #12525

Closed
2 of 7 tasks
melmus opened this issue Aug 18, 2020 · 3 comments · Fixed by #12537
Closed
2 of 7 tasks

Can’t choose branch for merge. #12525

melmus opened this issue Aug 18, 2020 · 3 comments · Fixed by #12537
Labels
topic/ui Change the appearance of the Gitea UI

Comments

@melmus
Copy link

melmus commented Aug 18, 2020

  • Gitea version (or commit ref):
    1.13.0+dev-295-g16980d13c

  • Git version:
    2.17.1

  • Operating system:
    Ubuntu 18.04.3 LTS

  • Database (use [x]):

    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:

    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

In the Pull Request if you go to Files Changed and choose “editing”, you can’t choose branch for merge.

List of browsers:

  • Google Chrome Version 84.0.4147.105 (Official Build) (64-bit), 84.0.4147.125 (Official Build) (64-bit)
  • Opera Version: 70.0.3728.106 (64-bit), 70.0.3728.119 (64-bit)
  • Safari Version: 13.1.2 (13609.3.5.1.5) (64-bit), 13.1.2 (15609.3.5.1.3) (64-bit)
  • Firefox Version: 79.0 (64-bit)

Screenshots

1
2
3

@jolheiser
Copy link
Member

jolheiser commented Aug 18, 2020

It lost the z-index battle. 😢

Branch selection
z

vs sticky details

z-index: 800;

I'm not sure the best way to fix it other than fighting z-index with a higher z-index, but that feels almost as dirty as an !important battle.
I'm also not sure why the sticky details are at 800. Since we can't really change semantic, the conclusion would be to change the sticky details to <=10, but I'm not sure what else that might break in a z-index battle.

@silverwind @CirnoT Thoughts? You two seem to have a better grasp than I do when it comes to these things.

@jolheiser jolheiser added the topic/ui Change the appearance of the Gitea UI label Aug 18, 2020
@silverwind
Copy link
Member

silverwind commented Aug 18, 2020

I'd say that diff bar should not set a z-index when it's not in the sticky state, avoiding this issue altogether by not creating the stacking context unless necessary.

@CirnoT
Copy link
Contributor

CirnoT commented Aug 19, 2020

I'd say that diff bar should not set a z-index when it's not in the sticky state

That would require JavaScript hacks which we wanted to avoid.

I'm also not sure why the sticky details are at 800. Since we can't really change semantic, the conclusion would be to change the sticky details to <=10, but I'm not sure what else that might break in a z-index battle.

Quick test shows that it can be safely reduced to 8.

zeripath added a commit to zeripath/gitea that referenced this issue Aug 19, 2020
jolheiser pushed a commit that referenced this issue Aug 19, 2020
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
topic/ui Change the appearance of the Gitea UI
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants