Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitaa2b3b2

Browse files
authored
Misc CSS fixes (#34638)
1. apply [`text-wrap:balance`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-wrap#balance)to various places making the text wrapping nicer, moving`empty-placeholder` CSS to base because it's not repo-specific.<img width="537" alt="Screenshot 2025-06-07 at 15 09 00"src="https://github.com/user-attachments/assets/8b37d031-269d-4ab3-ba59-2ac469c431e4"/><img width="514" alt="Screenshot 2025-06-07 at 15 11 16"src="https://github.com/user-attachments/assets/27a63117-be1d-4797-80f7-9ed14cca41dc"/><img width="346" alt="Screenshot 2025-06-07 at 15 22 26"src="https://github.com/user-attachments/assets/2f371384-0330-4a00-bb79-bc3c50ba5c91"/>2. fix overflow-related bug on actions run list, before:<img width="302" alt="Screenshot 2025-06-07 at 15 26 26"src="https://github.com/user-attachments/assets/d6607eeb-288b-4e81-a770-45a421c9c68c"/>After:<img width="299" alt="Screenshot 2025-06-07 at 15 26 59"src="https://github.com/user-attachments/assets/b0ddb66f-d4fe-4711-8ed9-eca08ce608f3"/>
1 parent47d69b7 commitaa2b3b2

File tree

7 files changed

+20
-20
lines changed

7 files changed

+20
-20
lines changed

‎templates/home.tmpl‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
<div class="center">
55
<img class="logo" width="220" height="220" src="{{AssetUrlPrefix}}/img/logo.svg" alt="{{ctx.Locale.Tr "logo"}}">
66
<div class="hero">
7-
<h1 class="ui icon header title">
7+
<h1 class="ui icon header title tw-text-balance">
88
{{AppName}}
99
</h1>
10-
<h2>{{ctx.Locale.Tr "startpage.app_desc"}}</h2>
10+
<h2 class="tw-text-balance">{{ctx.Locale.Tr "startpage.app_desc"}}</h2>
1111
</div>
1212
</div>
1313
</div>
@@ -16,15 +16,15 @@
1616
<h1 class="hero ui icon header">
1717
{{svg "octicon-flame"}} {{ctx.Locale.Tr "startpage.install"}}
1818
</h1>
19-
<p class="large">
19+
<p class="large tw-text-balance">
2020
{{ctx.Locale.Tr "startpage.install_desc" "https://docs.gitea.com/installation/install-from-binary" "https://github.com/go-gitea/gitea/tree/master/docker" "https://docs.gitea.com/installation/install-from-package"}}
2121
</p>
2222
</div>
2323
<div class="eight wide center column">
2424
<h1 class="hero ui icon header">
2525
{{svg "octicon-device-desktop"}} {{ctx.Locale.Tr "startpage.platform"}}
2626
</h1>
27-
<p class="large">
27+
<p class="large tw-text-balance">
2828
{{ctx.Locale.Tr "startpage.platform_desc" "https://go.dev/"}}
2929
</p>
3030
</div>
@@ -34,15 +34,15 @@
3434
<h1 class="hero ui icon header">
3535
{{svg "octicon-rocket"}} {{ctx.Locale.Tr "startpage.lightweight"}}
3636
</h1>
37-
<p class="large">
37+
<p class="large tw-text-balance">
3838
{{ctx.Locale.Tr "startpage.lightweight_desc"}}
3939
</p>
4040
</div>
4141
<div class="eight wide center column">
4242
<h1 class="hero ui icon header">
4343
{{svg "octicon-code"}} {{ctx.Locale.Tr "startpage.license"}}
4444
</h1>
45-
<p class="large">
45+
<p class="large tw-text-balance">
4646
{{ctx.Locale.Tr "startpage.license_desc" "https://code.gitea.io/gitea" "code.gitea.io/gitea" "https://github.com/go-gitea/gitea"}}
4747
</p>
4848
</div>

‎templates/org/header.tmpl‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
{{end}}
1919
</span>
2020
</div>
21-
{{if .RenderedDescription}}<div class="render-content markup tw-break-anywhere">{{.RenderedDescription}}</div>{{end}}
21+
{{if .RenderedDescription}}<div class="render-content markup">{{.RenderedDescription}}</div>{{end}}
2222
<div class="text light meta tw-mt-1">
2323
{{if .Org.Location}}<div class="flex-text-block">{{svg "octicon-location"}} <span>{{.Org.Location}}</span></div>{{end}}
2424
{{if .Org.Website}}<div class="flex-text-block">{{svg "octicon-link"}} <a class="muted" target="_blank" rel="noopener noreferrer me" href="{{.Org.Website}}">{{.Org.Website}}</a></div>{{end}}

‎templates/repo/migrate/migrate.tmpl‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<div class="header tw-text-center">
2020
{{.Title}}
2121
</div>
22-
<div class="description tw-text-center">
22+
<div class="description tw-text-center tw-text-balance">
2323
{{ctx.Locale.Tr (printf "repo.migrate.%s.description" .Name)}}
2424
</div>
2525
</div>

‎web_src/css/actions.css‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959

6060
.run-list-ref {
6161
display: inline-block!important;
62+
max-width:105px;
6263
}
6364

6465
@media (max-width:767.98px) {

‎web_src/css/base.css‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,16 @@ a.label,
318318
background:var(--color-hover);
319319
}
320320

321+
.empty-placeholder {
322+
display: flex;
323+
flex-direction: column;
324+
align-items: center;
325+
padding-top:40px;
326+
padding-bottom:40px;
327+
text-align: center;
328+
text-wrap: balance;
329+
}
330+
321331
.inline-code-block {
322332
padding:2px4px;
323333
border-radius:.24em;

‎web_src/css/form.css‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ textarea:focus,
220220
color:var(--color-secondary-dark-5);
221221
padding-bottom:0.6em;
222222
display: inline-block;
223+
text-wrap: balance;
223224
}
224225

225226
.m-captcha-style {

‎web_src/css/repo.css‎

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1227,14 +1227,6 @@ td .commit-summary {
12271227
font-weight:var(--font-weight-normal);
12281228
}
12291229

1230-
.empty-placeholder {
1231-
display: flex;
1232-
flex-direction: column;
1233-
align-items: center;
1234-
padding-top:40px;
1235-
padding-bottom:40px;
1236-
}
1237-
12381230
.repository.packages .file-size {
12391231
white-space: nowrap;
12401232
}
@@ -2040,10 +2032,6 @@ tbody.commit-list {
20402032
box-shadow:00.5rem1remvar(--color-shadow)!important;
20412033
}
20422034

2043-
.migrate-entry .description {
2044-
text-wrap: balance;
2045-
}
2046-
20472035
.commits-table .commits-table-rightform {
20482036
display: flex;
20492037
align-items: center;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp