From 1254a8271ec470a4b46bd1b04e81a34a2f70399d Mon Sep 17 00:00:00 2001 From: Giteabot <teabot@gitea.io> Date: Tue, 25 Apr 2023 12:47:26 -0400 Subject: [PATCH] Wrap too long push mirror addresses (#21120) (#24334) Backport #21120 by @JakobDev I noticed that it is possible to break the push mirror list by entering a too long URL. This should fix it. | Before | After | |--------------|-----------| ||| Co-authored-by: JakobDev <jakobdev@gmx.de> --- templates/repo/settings/options.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/repo/settings/options.tmpl b/templates/repo/settings/options.tmpl index 030c77b881..0a64492d36 100644 --- a/templates/repo/settings/options.tmpl +++ b/templates/repo/settings/options.tmpl @@ -169,7 +169,7 @@ {{range .PushMirrors}} <tr> {{$address := MirrorRemoteAddress $.Context $.Repository .GetRemoteName true}} - <td>{{$address.Address}}</td> + <td class="gt-word-break">{{$address.Address}}</td> <td>{{$.locale.Tr "repo.settings.mirror_settings.direction.push"}}</td> <td>{{if .LastUpdateUnix}}<time data-format="date-time" datetime="{{.LastUpdateUnix.FormatLong}}">{{.LastUpdateUnix.AsTime}}</time>{{else}}{{$.locale.Tr "never"}}{{end}} {{if .LastError}}<div class="ui red label tooltip" data-content="{{.LastError}}">{{$.locale.Tr "error"}}</div>{{end}}</td> <td class="right aligned">