Skip to content

Commit 4c27920

Browse files
authored
Merge branch 'main' into main
2 parents bfaf780 + fdaf1cc commit 4c27920

File tree

12 files changed

+19
-71
lines changed

12 files changed

+19
-71
lines changed

templates/package/content/container.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
<tbody>
8383
{{range $key, $value := .PackageDescriptor.Metadata.Labels}}
8484
<tr>
85-
<td class="top aligned">{{$key}}</td>
85+
<td class="tw-align-top">{{$key}}</td>
8686
<td class="tw-break-anywhere">{{$value}}</td>
8787
</tr>
8888
{{end}}

templates/repo/issue/labels/label_list.tmpl

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,11 @@
6363

6464
{{if and (not .PageIsOrgSettingsLabels) (.OrgLabels)}}
6565
<li class="item">
66-
<div class="ui grid middle aligned">
67-
<div class="ten wide column">
68-
{{ctx.Locale.Tr "repo.org_labels_desc"}}
69-
{{if .IsOrganizationOwner}}
70-
<a href="{{.OrganizationLink}}/settings/labels">({{ctx.Locale.Tr "repo.org_labels_desc_manage"}})</a>:
71-
{{end}}
72-
</div>
66+
<div>{{/* parent is flex, so use block here to keep sentence spaces */}}
67+
{{ctx.Locale.Tr "repo.org_labels_desc"}}
68+
{{if .IsOrganizationOwner}}
69+
<a href="{{.OrganizationLink}}/settings/labels">({{ctx.Locale.Tr "repo.org_labels_desc_manage"}})</a>:
70+
{{end}}
7371
</div>
7472
</li>
7573

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
<div class="divider"></div>
2-
<div class="ui equal width compact grid">
3-
{{$issueReferenceLink := printf "%s#%d" .Issue.Repo.FullName .Issue.Index}}
4-
<div class="row tw-items-center" data-tooltip-content="{{$issueReferenceLink}}">
5-
<span class="text column truncate">{{ctx.Locale.Tr "repo.issues.reference_link" $issueReferenceLink}}</span>
6-
<button class="ui two wide button column tw-p-2" data-clipboard-text="{{$issueReferenceLink}}">{{svg "octicon-copy" 14}}</button>
7-
</div>
2+
{{$issueReferenceLink := printf "%s#%d" .Issue.Repo.FullName .Issue.Index}}
3+
<div class="flex-text-block" data-tooltip-content="{{$issueReferenceLink}}">
4+
<span class="tw-flex-1 gt-ellipsis">{{ctx.Locale.Tr "repo.issues.reference_link" $issueReferenceLink}}</span>
5+
<button class="ui compact tiny icon button" data-clipboard-text="{{$issueReferenceLink}}">{{svg "octicon-copy" 14}}</button>
86
</div>

templates/repo/view_file_tree.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
<div class="flex-text-block tw-mb-2">
2-
<button class="ui compact tiny icon button"
1+
<div class="flex-text-block repo-button-row">
2+
<button class="ui compact basic icon button"
33
data-global-click="onRepoViewFileTreeToggle" data-toggle-action="hide"
44
data-tooltip-content="{{ctx.Locale.Tr "repo.diff.hide_file_tree"}}">
55
{{svg "octicon-sidebar-expand"}}

templates/user/auth/captcha.tmpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
<div class="inline field tw-text-center required">
1111
<div id="captcha" data-captcha-type="g-recaptcha" class="g-recaptcha-style" data-sitekey="{{.RecaptchaSitekey}}"></div>
1212
</div>
13-
<script src='{{URLJoin .RecaptchaURL "api.js"}}'></script>
13+
<script defer src='{{URLJoin .RecaptchaURL "api.js"}}'></script>
1414
{{else if eq .CaptchaType "hcaptcha"}}
1515
<div class="inline field tw-text-center required">
1616
<div id="captcha" data-captcha-type="h-captcha" class="h-captcha-style" data-sitekey="{{.HcaptchaSitekey}}"></div>
1717
</div>
18-
<script src='https://hcaptcha.com/1/api.js'></script>
18+
<script defer src='https://hcaptcha.com/1/api.js'></script>
1919
{{else if eq .CaptchaType "mcaptcha"}}
2020
<div class="inline field tw-text-center">
2121
<div class="m-captcha-style" id="mcaptcha__widget-container"></div>
@@ -25,5 +25,5 @@
2525
<div class="inline field tw-text-center">
2626
<div id="captcha" data-captcha-type="cf-turnstile" data-sitekey="{{.CfTurnstileSitekey}}"></div>
2727
</div>
28-
<script src='https://challenges.cloudflare.com/turnstile/v0/api.js'></script>
28+
<script defer src='https://challenges.cloudflare.com/turnstile/v0/api.js'></script>
2929
{{end}}{{end}}

templates/user/settings/repos.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
{{end}}
8282
{{else}}
8383
{{if .Repos}}
84-
<div class="ui middle aligned divided list">
84+
<div class="ui list">
8585
{{range .Repos}}
8686
<div class="item">
8787
<div class="content flex-text-block">

web_src/css/markup/content.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,6 @@
285285
.markup table {
286286
display: block;
287287
width: 100%;
288-
width: max-content;
289288
max-width: 100%;
290289
overflow: auto;
291290
}

web_src/css/modules/grid.css

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -393,28 +393,6 @@
393393
margin-right: 2.5rem;
394394
}
395395

396-
.ui[class*="middle aligned"].grid > .column:not(.row),
397-
.ui[class*="middle aligned"].grid > .row > .column,
398-
.ui.grid > [class*="middle aligned"].row > .column,
399-
.ui.grid > [class*="middle aligned"].column:not(.row),
400-
.ui.grid > .row > [class*="middle aligned"].column {
401-
flex-direction: column;
402-
vertical-align: middle;
403-
align-self: center !important;
404-
}
405-
406-
.ui[class*="equal width"].grid > .column:not(.row),
407-
.ui[class*="equal width"].grid > .row > .column,
408-
.ui.grid > [class*="equal width"].row > .column {
409-
display: inline-block;
410-
flex-grow: 1;
411-
}
412-
.ui[class*="equal width"].grid > .wide.column,
413-
.ui[class*="equal width"].grid > .row > .wide.column,
414-
.ui.grid > [class*="equal width"].row > .wide.column {
415-
flex-grow: 0;
416-
}
417-
418396
@media only screen and (max-width: 767.98px) {
419397
.ui[class*="mobile reversed"].grid,
420398
.ui[class*="mobile reversed"].grid > .row,

web_src/css/modules/table.css

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -152,16 +152,6 @@
152152
}
153153
}
154154

155-
.ui.table[class*="top aligned"],
156-
.ui.table [class*="top aligned"] {
157-
vertical-align: top;
158-
}
159-
160-
.ui.table[class*="middle aligned"],
161-
.ui.table [class*="middle aligned"] {
162-
vertical-align: middle;
163-
}
164-
165155
.ui.table th.collapsing,
166156
.ui.table td.collapsing {
167157
width: 1px;

web_src/css/repo/home.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
}
5656

5757
.repo-view-container .repo-view-file-tree-container {
58-
flex: 0 1 15%;
58+
flex: 0 0 15%;
5959
min-width: 0;
6060
max-height: 100vh;
6161
}

0 commit comments

Comments
 (0)