Browse Source

Fix webhook list styling (#14001)

* Fix webhook list styling

* As per @silverwind
tags/v1.15.0-dev
Cirno the Strongest GitHub 4 years ago
parent
commit
f580e175b1
2 changed files with 13 additions and 4 deletions
  1. +3
    -4
      templates/repo/settings/webhook/list.tmpl
  2. +10
    -0
      web_src/less/_admin.less

+ 3
- 4
templates/repo/settings/webhook/list.tmpl View File

@@ -41,13 +41,12 @@
<div class="item"> <div class="item">
{{.Description | Str2html}} {{.Description | Str2html}}
</div> </div>
<div class="ui divider"></div>
{{range .Webhooks}} {{range .Webhooks}}
<div class="item p-2">
<div class="item">
{{if eq .LastStatus 1}} {{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}} {{else if eq .LastStatus 2}}
<span class="text red">{{svg "octicon-alert"}}</span>
<span class="text red mr-3">{{svg "octicon-alert"}}</span>
{{else}} {{else}}
<span class="text grey mr-3">{{svg "octicon-dot-fill"}}</span> <span class="text grey mr-3">{{svg "octicon-dot-fill"}}</span>
{{end}} {{end}}


+ 10
- 0
web_src/less/_admin.less View File

@@ -1,4 +1,14 @@
.admin { .admin {
&.hooks .list {
> .item {
&:not(:first-child) {
border-top: 1px solid var(--color-secondary);
padding: 1rem;
margin: 15px -1rem -1rem;
}
}
}

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


Loading…
Cancel
Save