Skip to content

Commit 1c7496c

Browse files
authored
Webhook list enhancements (#21893)
1 parent 2e5ac53 commit 1c7496c

File tree

5 files changed

+14
-10
lines changed

5 files changed

+14
-10
lines changed

templates/admin/queue.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@
161161
<td>{{DateFmtLong .Start}}</td>
162162
<td>{{if .HasTimeout}}{{DateFmtLong .Timeout}}{{else}}-{{end}}</td>
163163
<td>
164-
<a class="delete-button" href="" data-url="{{$.Link}}/cancel/{{.PID}}" data-id="{{.PID}}" data-name="{{.Workers}}"><span class="text red" title="{{$.locale.Tr "remove"}}">{{svg "octicon-trash"}}</span></a>
164+
<a class="delete-button" href="" data-url="{{$.Link}}/cancel/{{.PID}}" data-id="{{.PID}}" data-name="{{.Workers}}" title="{{$.locale.Tr "remove"}}">{{svg "octicon-trash"}}</a>
165165
</td>
166166
</tr>
167167
{{else}}

templates/repo/settings/webhook/base_list.tmpl

+3-5
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,9 @@
5555
{{else}}
5656
<span class="text grey mr-3">{{svg "octicon-dot-fill"}}</span>
5757
{{end}}
58-
<a class="text truncate" title="{{.URL}}" href="{{$.BaseLink}}/{{.ID}}">{{.URL}}</a>
59-
<div class="ui right" style="display: inline-flex">
60-
<span class="text blue px-2"><a href="{{$.BaseLink}}/{{.ID}}">{{svg "octicon-pencil"}}</a></span>
61-
<span class="text red px-2"><a class="delete-button" data-url="{{$.Link}}/delete" data-id="{{.ID}}">{{svg "octicon-trash"}}</a></span>
62-
</div>
58+
<a class="text truncate f1 mr-3" title="{{.URL}}" href="{{$.BaseLink}}/{{.ID}}">{{.URL}}</a>
59+
<a class="muted p-3" href="{{$.BaseLink}}/{{.ID}}">{{svg "octicon-pencil"}}</a></span>
60+
<a class="delete-button p-3" data-url="{{$.Link}}/delete" data-id="{{.ID}}">{{svg "octicon-trash"}}</a>
6361
</div>
6462
{{end}}
6563
</div>

web_src/less/_admin.less

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
> .item {
44
&:not(:first-child) {
55
border-top: 1px solid var(--color-secondary);
6-
padding: 1rem;
7-
margin: 15px -1rem -1rem;
6+
padding: .25rem 1rem;
7+
margin: 12px -1rem -1rem;
88
}
99
}
1010
}

web_src/less/_base.less

+6
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,11 @@ a.muted:hover [class*="color-text"],
307307
color: var(--color-primary);
308308
}
309309

310+
.delete-button,
311+
.delete-button:hover {
312+
color: var(--color-red);
313+
}
314+
310315
a.label,
311316
.repository-menu a,
312317
.ui.search .results a,
@@ -2571,6 +2576,7 @@ table th[data-sortt-desc] {
25712576

25722577
.truncated-item-container {
25732578
display: flex !important;
2579+
align-items: center;
25742580
}
25752581

25762582
.ellipsis-button {

web_src/less/_repository.less

+2-2
Original file line numberDiff line numberDiff line change
@@ -2616,8 +2616,8 @@
26162616
> .item {
26172617
&:not(:first-child) {
26182618
border-top: 1px solid var(--color-secondary);
2619-
padding: 1rem;
2620-
margin: 15px -1rem -1rem;
2619+
padding: .25rem 1rem;
2620+
margin: 12px -1rem -1rem;
26212621
}
26222622

26232623
> .svg {

0 commit comments

Comments
 (0)