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

Fix duplicate dropdown dividers #32760

Merged
merged 6 commits into from
Dec 9, 2024

Conversation

wxiaoguang
Copy link
Contributor

@wxiaoguang wxiaoguang commented Dec 8, 2024

Fix #27466

The problem is that any item in the menu could be hidden, pure CSS won't work, and dropdown's builtin "hideDividers" doesn't work with our "scope dividers". The newly introduced "archived" label makes the dividers regression more.

Before (duplicate / incorrect dividers):

image

image

After:

image

image

By the way, the lint rule unicorn/consistent-function-scoping doesn't help really our code and might force to do unnecessary code moving during refactoring, so disable it (and then a eslint-disable-line could be removed)

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Dec 8, 2024
@wxiaoguang wxiaoguang marked this pull request as draft December 8, 2024 12:43
@wxiaoguang wxiaoguang changed the title Fix duplicate dropdown dividers WIP: Fix duplicate dropdown dividers Dec 8, 2024
@wxiaoguang wxiaoguang force-pushed the fix-dropdown-divider branch from 8cd7684 to 2c2d3fb Compare December 8, 2024 14:13
@pull-request-size pull-request-size bot added size/L and removed size/M labels Dec 8, 2024
@github-actions github-actions bot added modifies/templates This PR modifies the template files modifies/internal labels Dec 8, 2024
@wxiaoguang wxiaoguang marked this pull request as ready for review December 8, 2024 14:14
@wxiaoguang wxiaoguang changed the title WIP: Fix duplicate dropdown dividers Fix duplicate dropdown dividers Dec 8, 2024
@wxiaoguang wxiaoguang mentioned this pull request Dec 8, 2024
@wxiaoguang wxiaoguang added this to the 1.23.0 milestone Dec 8, 2024
@wxiaoguang wxiaoguang force-pushed the fix-dropdown-divider branch 2 times, most recently from 0526099 to e9973e7 Compare December 8, 2024 15:09
@wxiaoguang wxiaoguang force-pushed the fix-dropdown-divider branch from e9973e7 to 2c71d33 Compare December 8, 2024 15:17
@metiftikci
Copy link
Member

Tested everthing works

@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 Dec 9, 2024
@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 Dec 9, 2024
@github-actions github-actions bot added the modifies/go Pull requests that update Go code label Dec 9, 2024
@wxiaoguang wxiaoguang enabled auto-merge (squash) December 9, 2024 07:31
@wxiaoguang wxiaoguang merged commit 5675efb into go-gitea:main Dec 9, 2024
26 checks passed
@wxiaoguang wxiaoguang deleted the fix-dropdown-divider branch December 9, 2024 07:55
zjjhot added a commit to zjjhot/gitea that referenced this pull request Dec 10, 2024
* giteaofficial/main:
  Make RepoActionView.vue support `##[group]` (go-gitea#32770)
  [skip ci] Updated translations via Crowdin
  Make Monaco theme follow browser, fully type codeeditor.ts (go-gitea#32756)
  Fix duplicate dropdown dividers (go-gitea#32760)
  Remove unnecessary border in repo home page sidebar (go-gitea#32767)
@go-gitea go-gitea locked as resolved and limited conversation to collaborators Mar 9, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. modifies/frontend modifies/go Pull requests that update Go code modifies/internal modifies/templates This PR modifies the template files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Archived label visual bug in labels select
5 participants