Skip to content

Commit a424815

Browse files
justusbunsi6543techknowlogick
authored andcommitted
Prevent webhook action buttons from shifting (go-gitea#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>
1 parent f9218bb commit a424815

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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)