summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorromankl <romankl@users.noreply.github.com>2018-12-02 16:47:45 +0100
committertechknowlogick <hello@techknowlogick.com>2018-12-02 10:47:45 -0500
commit7bc1faabdbe073741bf413eace202d9585bb409b (patch)
treea133c27075b70d461f2b8e3dd70d2297ac7bd9c0
parente406dc058dc1dacb5c481485644c2e2844170b9a (diff)
downloadgitea-7bc1faabdbe073741bf413eace202d9585bb409b.tar.gz
gitea-7bc1faabdbe073741bf413eace202d9585bb409b.zip
word-break the WebHook url to prevent a ui-break (#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: https://github.com/go-gitea/gitea/issues/5416 Signed-off-by: Roman <romaaan.git@gmail.com>
-rw-r--r--templates/repo/settings/webhook/list.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/settings/webhook/list.tmpl b/templates/repo/settings/webhook/list.tmpl
index de6bd2c5f2..d98976cf5b 100644
--- a/templates/repo/settings/webhook/list.tmpl
+++ b/templates/repo/settings/webhook/list.tmpl
@@ -38,7 +38,7 @@
{{else}}
<span class="text grey"><i class="octicon octicon-primitive-dot"></i></span>
{{end}}
- <a href="{{$.BaseLink}}/settings/hooks/{{.ID}}">{{.URL}}</a>
+ <a class="dont-break-out" href="{{$.BaseLink}}/settings/hooks/{{.ID}}">{{.URL}}</a>
<div class="ui right">
<span class="text blue"><a href="{{$.BaseLink}}/settings/hooks/{{.ID}}"><i class="fa fa-pencil"></i></a></span>
<span class="text red"><a class="delete-button" data-url="{{$.Link}}/delete" data-id="{{.ID}}"><i class="fa fa-times"></i></a></span>