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 button heights on commits page #3091

Merged
merged 2 commits into from
Dec 5, 2017
Merged

Conversation

silverwind
Copy link
Member

Fixes a issue I introduced by changing the branch button. Basically, Semantic uses the selector .ui.menu:not(.vertical) .item > .button which does not work if .button is no direct child of .item which is the case for the branch button in our case, because it's wrapped in a dropdown.

Additionally, I fixed a indendation issue I introduced earlier while merging.

Before

screen shot 2017-12-04 at 18 52 22

After

screen shot 2017-12-04 at 19 06 06

@codecov-io
Copy link

codecov-io commented Dec 4, 2017

Codecov Report

Merging #3091 into master will decrease coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3091      +/-   ##
==========================================
- Coverage   33.25%   33.25%   -0.01%     
==========================================
  Files         273      273              
  Lines       39954    39954              
==========================================
- Hits        13288    13286       -2     
- Misses      24767    24769       +2     
  Partials     1899     1899
Impacted Files Coverage Δ
models/repo_list.go 65.62% <0%> (-1.57%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e2968b4...6d61f2c. Read the comment docs.

@tboerger tboerger added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Dec 4, 2017
@lafriks
Copy link
Member

lafriks commented Dec 4, 2017

LGTM

@tboerger tboerger 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 4, 2017
@lunny lunny added the topic/ui Change the appearance of the Gitea UI label Dec 5, 2017
@lunny lunny added this to the 1.4.0 milestone Dec 5, 2017
@lunny
Copy link
Member

lunny commented Dec 5, 2017

@silverwind if this change will effect other menus?

@silverwind
Copy link
Member Author

silverwind commented Dec 5, 2017

It will, but there should be no negative effect. You can see the override as sort of a bug fix for a bug in Semantic.

silverwind added a commit to silverwind/Semantic-UI that referenced this pull request Dec 5, 2017
When `.button` is not a direct descendant of `.menu` (for example, when it is wrapped), it would not get this style applied, which caused inconsistent heights of buttons that were wrapped vs. ones that weren't. Removed the `>` operator to fix this.

Refs:

- go-gitea/gitea#3091
- https://try.gitea.io/silverwind/testcopy/commits/branch/master
@silverwind
Copy link
Member Author

silverwind commented Dec 5, 2017

I also created Semantic-Org/Semantic-UI#5996 to fix this in Semantic itself. Thought, based on the recent activity in that repo, I don't see that one getting merged anytime soon.

@lunny
Copy link
Member

lunny commented Dec 5, 2017

LGTM

@tboerger tboerger 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 5, 2017
@lunny lunny merged commit 3b89ee5 into go-gitea:master Dec 5, 2017
@go-gitea go-gitea locked and limited conversation to collaborators Nov 23, 2020
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. topic/ui Change the appearance of the Gitea UI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants