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

PR Files changed view: "Filter by commit" Dropdown not visible after clicking the button #31673

Closed
sebastian-sauer opened this issue Jul 23, 2024 · 5 comments · Fixed by #31695
Labels
topic/ui Change the appearance of the Gitea UI type/bug
Milestone

Comments

@sebastian-sauer
Copy link
Contributor

sebastian-sauer commented Jul 23, 2024

Description

The "Filter by commit" dropdown on the PR files changed view will not be shown if you click on the button.

The div gets the visible class when clicking the button but this does not show the dropdown. (display:none is still used from .dropdown class)

Just tested this on demo.gitea.com:

https://demo.gitea.com/TEST_CODEOWNERS/gitea/pulls/1/files and then click on the commits button.

Gitea Version

1.22.1

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

Gitea binary, demo.gitea.com

Database

None

@yp05327
Copy link
Contributor

yp05327 commented Jul 23, 2024

I'm sorry, What is Commits dropdown? Do you mean this?
image
Or can you provide some screenshots?

@sebastian-sauer
Copy link
Contributor Author

Yes - exactly. The "Filter by commit" dropdown. (i've updated the description, too)

@sebastian-sauer sebastian-sauer changed the title PR Files changed view: Commits Dropdown not visible after clicking the button PR Files changed view: "Filter by commit" Dropdown not visible after clicking the button Jul 23, 2024
@yp05327 yp05327 added the topic/ui Change the appearance of the Gitea UI label Jul 23, 2024
@sebastian-sauer
Copy link
Contributor Author

Caused by the change in #31281 (commit 482fee2)

The transition class has been removed. When adding the class, the dropdown will be visible.

@wxiaoguang as i don't know the reason behind the change i'm not sure if readding the transition class would break anything. Any thoughts on this?

@wxiaoguang
Copy link
Contributor

Actually it was an abuse of dropdown. The dropdown classes (like "transition visible") should be managed by the Fomantic UI JS, but not by Vue. Fomantic UI doesn't work directly with Vue.

@wxiaoguang
Copy link
Contributor

-> Fix "Filter by commit" Dropdown #31695

@yp05327 yp05327 added this to the 1.23.0 milestone Jul 24, 2024
wxiaoguang added a commit that referenced this issue Jul 25, 2024
@go-gitea go-gitea locked as resolved and limited conversation to collaborators Oct 23, 2024
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 type/bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants