Skip to content

Commit 5f55bab

Browse files
authored
Fix webhook list styling (#14001)
* Fix webhook list styling * As per @silverwind
1 parent 53308de commit 5f55bab

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

templates/repo/settings/webhook/list.tmpl

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,12 @@
4141
<div class="item">
4242
{{.Description | Str2html}}
4343
</div>
44-
<div class="ui divider"></div>
4544
{{range .Webhooks}}
46-
<div class="item p-2">
45+
<div class="item">
4746
{{if eq .LastStatus 1}}
48-
<span class="text green">{{svg "octicon-check"}}</span>
47+
<span class="text green mr-3">{{svg "octicon-check"}}</span>
4948
{{else if eq .LastStatus 2}}
50-
<span class="text red">{{svg "octicon-alert"}}</span>
49+
<span class="text red mr-3">{{svg "octicon-alert"}}</span>
5150
{{else}}
5251
<span class="text grey mr-3">{{svg "octicon-dot-fill"}}</span>
5352
{{end}}

web_src/less/_admin.less

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
.admin {
2+
&.hooks .list {
3+
> .item {
4+
&:not(:first-child) {
5+
border-top: 1px solid var(--color-secondary);
6+
padding: 1rem;
7+
margin: 15px -1rem -1rem;
8+
}
9+
}
10+
}
11+
212
.table.segment {
313
padding: 0;
414
font-size: 13px;

0 commit comments

Comments
 (0)