diff options
author | Steven <61625851+justusbunsi@users.noreply.github.com> | 2021-06-25 19:00:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-25 13:00:09 -0400 |
commit | 31acd3c0c2de788fa995d5660b617f51d5b94078 (patch) | |
tree | 33b711c89ca786a0ff8af22c0af8f78caf9641f2 | |
parent | f573e93ed429d1d1dd0a7be8a3b0042f0817cc00 (diff) | |
download | gitea-31acd3c0c2de788fa995d5660b617f51d5b94078.tar.gz gitea-31acd3c0c2de788fa995d5660b617f51d5b94078.zip |
Prevent webhook action buttons from shifting (#16087)
On long webhook urls the action buttons (edit, delete) have been shifted
by the url text.
Signed-off-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
-rw-r--r-- | templates/repo/settings/webhook/base_list.tmpl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/repo/settings/webhook/base_list.tmpl b/templates/repo/settings/webhook/base_list.tmpl index 916272a97a..e77e747742 100644 --- a/templates/repo/settings/webhook/base_list.tmpl +++ b/templates/repo/settings/webhook/base_list.tmpl @@ -41,7 +41,7 @@ {{.Description | Str2html}} </div> {{range .Webhooks}} - <div class="item"> + <div class="item truncated-item-container"> {{if eq .LastStatus 1}} <span class="text green mr-3">{{svg "octicon-check"}}</span> {{else if eq .LastStatus 2}} @@ -49,8 +49,8 @@ {{else}} <span class="text grey mr-3">{{svg "octicon-dot-fill"}}</span> {{end}} - <a class="dont-break-out" href="{{$.BaseLink}}/{{.ID}}">{{.URL}}</a> - <div class="ui right"> + <a class="text truncate" title="{{.URL}}" href="{{$.BaseLink}}/{{.ID}}">{{.URL}}</a> + <div class="ui right" style="display: inline-flex"> <span class="text blue px-2"><a href="{{$.BaseLink}}/{{.ID}}">{{svg "octicon-pencil"}}</a></span> <span class="text red px-2"><a class="delete-button" data-url="{{$.Link}}/delete" data-id="{{.ID}}">{{svg "octicon-trash"}}</a></span> </div> |