loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix long name ui issues and label ui issue (#23541)

This PR fixes some ui problems as mentioned in the two issues below.
1. Long file path has no word break

## Before
<img width="1357" alt="截屏2023-03-17 17 49 43"
src="https://user-images.githubusercontent.com/17645053/225873491-27c7bf9a-d5d5-4065-9e4a-ff228e935abf.png">

## After
<img width="1248" alt="截屏2023-03-17 17 51 22"
src="https://user-images.githubusercontent.com/17645053/225873562-93b87af7-9c83-43f8-aa0d-36a9174d25ac.png">
on mobile
<img width="408" alt="截屏2023-03-17 17 51 15"
src="https://user-images.githubusercontent.com/17645053/225873554-1b8c8999-1dfc-4251-a7fc-20ecd3444cb0.png">


2. Texts in labels
## Before
<img width="1219" alt="截屏2023-03-17 17 49 24"
src="https://user-images.githubusercontent.com/17645053/225873369-812b1b52-c104-4e32-988f-c3e55ad2f844.png">

## After
<img width="1259" alt="截屏2023-03-17 17 51 31"
src="https://user-images.githubusercontent.com/17645053/225873317-9717fd2c-e9e1-4a00-a27d-6bdc5933c3ca.png">
with two labels
<img width="1258" alt="截屏2023-03-17 17 51 53"
src="https://user-images.githubusercontent.com/17645053/225873323-13198192-71de-472d-8e78-6fd86ddba3d9.png">
In explore and star pages
<img width="896" alt="截屏2023-03-17 18 25 00"
src="https://user-images.githubusercontent.com/17645053/225878962-9e26e3aa-cff0-451c-9133-19f4ad1507a4.png">

<img width="913" alt="截屏2023-03-17 18 25 09"
src="https://user-images.githubusercontent.com/17645053/225878967-6adaa414-136e-43c2-87d0-7e46a0da112e.png">

3. Long name repository on creating new fork page
## Before
<img width="919" alt="截屏2023-03-17 17 50 01"
src="https://user-images.githubusercontent.com/17645053/225873723-5c4ea137-3b51-4074-a458-ef442e330ddf.png">

## After
<img width="907" alt="截屏2023-03-17 17 50 37"
src="https://user-images.githubusercontent.com/17645053/225873772-fc4a52c3-49c6-4ca6-903d-a13707f2a98b.png">

<img width="383" alt="截屏2023-03-17 17 50 48"
src="https://user-images.githubusercontent.com/17645053/225873779-6de1dfde-5c05-4ae9-89e1-85c25b3a1682.png">

Closes #23535
Closes #23534

authored by

Hester Gong and committed by
GitHub
d42015e6 48f6805b

+20 -5
+1 -1
templates/explore/repo_list.tmpl
··· 10 10 <a class="name" href="{{.Link}}"> 11 11 {{if or $.PageIsExplore $.PageIsProfileStarList}}{{if .Owner}}{{.Owner.Name}} / {{end}}{{end}}{{.Name}} 12 12 </a> 13 - <div class="labels gt-df gt-ac gt-fw"> 13 + <div class="labels gt-df gt-ac gt-fw gt-mr-3"> 14 14 {{if .IsArchived}} 15 15 <span class="ui basic label">{{$.locale.Tr "repo.desc.archived"}}</span> 16 16 {{end}}
+1 -1
templates/repo/pulls/fork.tmpl
··· 37 37 38 38 <div class="inline field"> 39 39 <label>{{.locale.Tr "repo.fork_from"}}</label> 40 - <a href="{{.ForkRepo.Link}}">{{.ForkRepo.FullName}}</a> 40 + <a href="{{.ForkRepo.Link}}" class="gt-dib">{{.ForkRepo.FullName}}</a> 41 41 </div> 42 42 <div class="inline required field {{if .Err_RepoName}}error{{end}}"> 43 43 <label for="repo_name">{{.locale.Tr "repo.repo_name"}}</label>
+5
web_src/css/explore.css
··· 41 41 margin-bottom: 0.5rem; 42 42 } 43 43 44 + .ui.repository.list .repo-title .labels { 45 + word-break: normal; 46 + flex-shrink: 0; 47 + } 48 + 44 49 .ui.repository.branches .info { 45 50 font-size: 12px; 46 51 color: var(--color-text-light);
+4 -3
web_src/css/form.css
··· 479 479 480 480 .repository.new.repo form .selection.dropdown, 481 481 .repository.new.migrate form .selection.dropdown, 482 - .repository.new.fork form .selection.dropdown { 482 + .repository.new.fork form .selection.dropdown, 483 + .repository.new.fork form .field a { 483 484 vertical-align: middle; 484 485 width: 50% !important; 485 486 } ··· 491 492 .repository.new.repo form input, 492 493 .repository.new.migrate form input, 493 494 .repository.new.fork form input, 495 + .repository.new.fork form .field a, 494 496 .repository.new.repo form .selection.dropdown, 495 497 .repository.new.migrate form .selection.dropdown, 496 498 .repository.new.fork form .selection.dropdown { ··· 500 502 .repository.new.migrate form .field button, 501 503 .repository.new.fork form .field button, 502 504 .repository.new.repo form .field a, 503 - .repository.new.migrate form .field a, 504 - .repository.new.fork form .field a { 505 + .repository.new.migrate form .field a { 505 506 margin-bottom: 1em; 506 507 width: 100%; 507 508 }
+4
web_src/css/repository.css
··· 214 214 font-size: 1.2em; 215 215 } 216 216 217 + .repository.file.list .repo-path { 218 + word-break: break-word; 219 + } 220 + 217 221 .repository.file.list .repo-path .section, 218 222 .repository.file.list .repo-path .divider { 219 223 display: inline;
+5
web_src/css/user.css
··· 67 67 margin-top: 25px; 68 68 } 69 69 70 + .user.profile .ui.repository.list .repo-title .labels { 71 + word-break: normal; 72 + flex-shrink: 0; 73 + } 74 + 70 75 .user.profile #loading-heatmap { 71 76 margin-bottom: 1em; 72 77 }