Skip to content

Commit 21fbee1

Browse files
authored
Various UI fixes (#14239)
* Fix #14238 * Fix #14235 * Fix #14237 * Fix #14234 * Use octicon to show private status of repo in admin dashboard * Fix #14232 * Fix #14236
1 parent 4092c04 commit 21fbee1

File tree

6 files changed

+31
-8
lines changed

6 files changed

+31
-8
lines changed

templates/admin/repo/list.tmpl

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
{{.i18n.Tr "admin.repos.name"}}
2323
{{SortArrow "alphabetically" "reversealphabetically" $.SortType false}}
2424
</th>
25-
<th>{{.i18n.Tr "admin.repos.private"}}</th>
2625
<th>{{.i18n.Tr "admin.repos.watches"}}</th>
2726
<th data-sortt-asc="moststars" data-sortt-desc="feweststars">
2827
{{.i18n.Tr "admin.repos.stars"}}
@@ -51,8 +50,12 @@
5150
<span class="text gold">{{svg "octicon-lock"}}</span>
5251
{{end}}
5352
</td>
54-
<td><a href="{{AppSubUrl}}/{{.Owner.Name}}/{{.Name}}">{{.Name}}</a></td>
55-
<td>{{if .IsPrivate}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</td>
53+
<td>
54+
<a href="{{AppSubUrl}}/{{.Owner.Name}}/{{.Name}}">{{.Name}}</a>
55+
{{if .IsPrivate}}
56+
<span class="text gold">{{svg "octicon-lock"}}</span>
57+
{{end}}
58+
</td>
5659
<td>{{.NumWatches}}</td>
5760
<td>{{.NumStars}}</td>
5861
<td>{{.NumForks}}</td>

templates/explore/organizations.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<span class="header">
1313
<a href="{{.HomeLink}}">{{.Name}}</a> {{.FullName}}
1414
{{if .Visibility.IsPrivate}}
15-
<span class="text gold">{{svg "octicon-lock"}}</span>
15+
<span class="ui basic label">{{$.i18n.Tr "repo.desc.private"}}</span>
1616
{{end}}
1717
</span>
1818
<div class="description">

templates/user/settings/grants_oauth2.tmpl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
{{$.i18n.Tr "settings.revoke_key"}}
1616
</button>
1717
</div>
18-
{{svg "octicon-key"}}
18+
<div class="left floated content">
19+
{{svg "octicon-key"}}
20+
</div>
1921
<div class="content">
2022
<strong>{{$grant.Application.Name}}</strong>
2123
<div class="activity meta">

web_src/less/_base.less

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1556,10 +1556,13 @@ a.ui.label:hover {
15561556
.ui.button {
15571557
background: var(--color-button);
15581558
border: 1px solid var(--color-light-border);
1559-
box-shadow: none !important;
15601559
color: var(--color-text);
15611560
}
15621561

1562+
.page-content .ui.button {
1563+
box-shadow: none !important;
1564+
}
1565+
15631566
.ui.button:hover {
15641567
background: var(--color-hover);
15651568
color: var(--color-text);

web_src/less/_dashboard.less

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

112112
.issue.title {
113113
width: 80%;
114+
margin: 0 0 1em;
114115
}
115116

116117
.push.news .content ul {

web_src/less/_repository.less

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1475,7 +1475,7 @@
14751475
}
14761476
}
14771477

1478-
.diff-box .header {
1478+
.diff-box .header:not(.resolved-placeholder) {
14791479
display: flex;
14801480
align-items: center;
14811481

@@ -1493,6 +1493,15 @@
14931493
}
14941494
}
14951495

1496+
.diff-box .resolved-placeholder {
1497+
display: flex;
1498+
align-items: center;
1499+
1500+
.button {
1501+
padding: 8px 12px;
1502+
}
1503+
}
1504+
14961505
.diff-file-box {
14971506
margin-top: 1rem;
14981507
margin-bottom: 1rem;
@@ -2697,7 +2706,12 @@ tbody.commit-list {
26972706

26982707
.commit-body {
26992708
white-space: pre-wrap;
2700-
margin: 0;
2709+
}
2710+
2711+
.repository:not(.diff) {
2712+
.commit-body {
2713+
margin: 0;
2714+
}
27012715
}
27022716

27032717
.git-notes.top {

0 commit comments

Comments
 (0)