Skip to content

Commit

Permalink
Fix webhook list styling (#14001)
Browse files Browse the repository at this point in the history
* Fix webhook list styling

* As per @silverwind
  • Loading branch information
CirnoT authored Dec 16, 2020
1 parent 53308de commit 5f55bab
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
7 changes: 3 additions & 4 deletions templates/repo/settings/webhook/list.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,12 @@
<div class="item">
{{.Description | Str2html}}
</div>
<div class="ui divider"></div>
{{range .Webhooks}}
<div class="item p-2">
<div class="item">
{{if eq .LastStatus 1}}
<span class="text green">{{svg "octicon-check"}}</span>
<span class="text green mr-3">{{svg "octicon-check"}}</span>
{{else if eq .LastStatus 2}}
<span class="text red">{{svg "octicon-alert"}}</span>
<span class="text red mr-3">{{svg "octicon-alert"}}</span>
{{else}}
<span class="text grey mr-3">{{svg "octicon-dot-fill"}}</span>
{{end}}
Expand Down
10 changes: 10 additions & 0 deletions web_src/less/_admin.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
.admin {
&.hooks .list {
> .item {
&:not(:first-child) {
border-top: 1px solid var(--color-secondary);
padding: 1rem;
margin: 15px -1rem -1rem;
}
}
}

.table.segment {
padding: 0;
font-size: 13px;
Expand Down

0 comments on commit 5f55bab

Please sign in to comment.