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 long project name display in issue list and in related dropdown #23653

Merged
merged 12 commits into from
Mar 24, 2023

Conversation

HesterG
Copy link
Contributor

@HesterG HesterG commented Mar 23, 2023

This PR is to fix the second problem mentioned in #23625, along with the long texts problem in issue-item-bottom-row of issuelist.tmpl

Main changes are:

  1. Add max-width to the search dropdowns in issue list and make the possible long texts inside to show ellipsis if texts are long
  2. Adjust the conditions in issuelist.tmpl to fix the problem as mentioned by the comment
  3. Use word-break: break-word; in issue-item-bottom-row to break the possible long texts.

After the PR
issuelist in repo (similar for pr list):
截屏2023-03-23 17 42 40

dropdowns with long name (Here take reference from github to deal with the long names cases: show ellipsis with no title, because all these options are clickable, and it might not be necessary to add titles to them ):

截屏2023-03-23 17 43 50

截屏2023-03-23 17 43 56

issue page (similar for pr page):
截屏2023-03-23 17 45 37

on PC:
截屏2023-03-23 17 47 20

截屏2023-03-23 17 46 40

@HesterG HesterG added the topic/ui Change the appearance of the Gitea UI label Mar 23, 2023
@lunny lunny added this to the 1.20.0 milestone Mar 23, 2023
…-23625

Fixed Conflict in
	web_src/css/helpers.css
@zeripath
Copy link
Contributor

Conflicts fixed

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Mar 23, 2023
@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 23, 2023
@codecov-commenter
Copy link

codecov-commenter commented Mar 23, 2023

Codecov Report

Merging #23653 (6d3d77a) into main (f521e88) will increase coverage by 0.00%.
The diff coverage is 40.79%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@           Coverage Diff            @@
##             main   #23653    +/-   ##
========================================
  Coverage   47.14%   47.14%            
========================================
  Files        1149     1155     +6     
  Lines      151446   152394   +948     
========================================
+ Hits        71397    71849   +452     
- Misses      71611    72070   +459     
- Partials     8438     8475    +37     
Impacted Files Coverage Δ
cmd/dump.go 0.66% <0.00%> (-0.01%) ⬇️
cmd/web.go 0.00% <0.00%> (ø)
models/actions/run.go 1.64% <0.00%> (-0.08%) ⬇️
models/actions/runner.go 1.44% <ø> (ø)
models/packages/package.go 45.45% <0.00%> (-1.13%) ⬇️
models/user/search.go 77.50% <0.00%> (-6.29%) ⬇️
modules/actions/workflows.go 0.00% <0.00%> (ø)
modules/context/context.go 64.54% <0.00%> (-3.53%) ⬇️
modules/doctor/storage.go 30.65% <0.00%> (-1.29%) ⬇️
modules/setting/git.go 45.45% <ø> (ø)
... and 35 more

... and 43 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@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 24, 2023
@lunny lunny added the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label Mar 24, 2023
@lunny lunny merged commit a9cceb0 into go-gitea:main Mar 24, 2023
@lunny lunny removed the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label Mar 24, 2023
@HesterG HesterG deleted the fix-long-project-name-23625 branch April 10, 2023 02:28
@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
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