Skip to content

Commit cf9a1d4

Browse files
committed
Prevent webhook action buttons from shifting
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>
1 parent d8792eb commit cf9a1d4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: templates/repo/settings/webhook/base_list.tmpl

+3-3
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,16 @@
4141
{{.Description | Str2html}}
4242
</div>
4343
{{range .Webhooks}}
44-
<div class="item">
44+
<div class="item truncated-item-container">
4545
{{if eq .LastStatus 1}}
4646
<span class="text green mr-3">{{svg "octicon-check"}}</span>
4747
{{else if eq .LastStatus 2}}
4848
<span class="text red mr-3">{{svg "octicon-alert"}}</span>
4949
{{else}}
5050
<span class="text grey mr-3">{{svg "octicon-dot-fill"}}</span>
5151
{{end}}
52-
<a class="dont-break-out" href="{{$.BaseLink}}/{{.ID}}">{{.URL}}</a>
53-
<div class="ui right">
52+
<a class="text truncate" title="{{.URL}}" href="{{$.BaseLink}}/{{.ID}}">{{.URL}}</a>
53+
<div class="ui right" style="display: inline-flex">
5454
<span class="text blue px-2"><a href="{{$.BaseLink}}/{{.ID}}">{{svg "octicon-pencil"}}</a></span>
5555
<span class="text red px-2"><a class="delete-button" data-url="{{$.Link}}/delete" data-id="{{.ID}}">{{svg "octicon-trash"}}</a></span>
5656
</div>

0 commit comments

Comments
 (0)