]> source.dussan.org Git - gitea.git/commit
word-break the WebHook url to prevent a ui-break (#5445)
authorromankl <romankl@users.noreply.github.com>
Sun, 2 Dec 2018 15:47:45 +0000 (16:47 +0100)
committertechknowlogick <hello@techknowlogick.com>
Sun, 2 Dec 2018 15:47:45 +0000 (10:47 -0500)
commit7bc1faabdbe073741bf413eace202d9585bb409b
treea133c27075b70d461f2b8e3dd70d2297ac7bd9c0
parente406dc058dc1dacb5c481485644c2e2844170b9a
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>
templates/repo/settings/webhook/list.tmpl