From 23cc5c2d2c68ef121ac5aa21b1b5af7ac9f6462e Mon Sep 17 00:00:00 2001 From: Roman Date: Fri, 30 Nov 2018 09:06:01 +0100 Subject: [PATCH] word-break the WebHook url to prevent a ui-break 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 --- templates/repo/settings/webhook/list.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/repo/settings/webhook/list.tmpl b/templates/repo/settings/webhook/list.tmpl index de6bd2c5f2a0..d98976cf5b40 100644 --- a/templates/repo/settings/webhook/list.tmpl +++ b/templates/repo/settings/webhook/list.tmpl @@ -38,7 +38,7 @@ {{else}} {{end}} - {{.URL}} + {{.URL}}