Skip to content

Commit 7bc1faa

Browse files
romankltechknowlogick
authored andcommitted
word-break the WebHook url to prevent a ui-break (go-gitea#5445)
right now, the url is displayed with an anchor tag with no classes. If the url is really really long, the url will break out of the containing div and (depending on the url length) the browser shows the horizontal scrollbar. This pr makes use of the already existing css class `dont-break-out` which gives all the anchor the necessary properties to prevent the break. Another solution could be to introduce some classes like `text text-break-word`, but that would duplicate the `dont-break-out` class just for text elements that use the `text` class. fixes: go-gitea#5416 Signed-off-by: Roman <[email protected]>
1 parent e406dc0 commit 7bc1faa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/repo/settings/webhook/list.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
{{else}}
3939
<span class="text grey"><i class="octicon octicon-primitive-dot"></i></span>
4040
{{end}}
41-
<a href="{{$.BaseLink}}/settings/hooks/{{.ID}}">{{.URL}}</a>
41+
<a class="dont-break-out" href="{{$.BaseLink}}/settings/hooks/{{.ID}}">{{.URL}}</a>
4242
<div class="ui right">
4343
<span class="text blue"><a href="{{$.BaseLink}}/settings/hooks/{{.ID}}"><i class="fa fa-pencil"></i></a></span>
4444
<span class="text red"><a class="delete-button" data-url="{{$.Link}}/delete" data-id="{{.ID}}"><i class="fa fa-times"></i></a></span>

0 commit comments

Comments
 (0)