Skip to content

Commit 1f8ac27

Browse files
authored
Fix overflow on push notification (#31179)
Fixes: #30063 <img width="1301" alt="Screenshot 2024-05-30 at 14 43 24" src="https://github.com/go-gitea/gitea/assets/115237/00443af0-088d-49a5-be9e-8c9adcc2c01d">
1 parent c888c93 commit 1f8ac27

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/repo/code/recently_pushed_new_branches.tmpl

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{range .RecentlyPushedNewBranches}}
2-
<div class="ui positive message tw-flex tw-items-center">
3-
<div class="tw-flex-1">
2+
<div class="ui positive message tw-flex tw-items-center tw-gap-2">
3+
<div class="tw-flex-1 tw-break-anywhere">
44
{{$timeSince := TimeSince .CommitTime.AsTime ctx.Locale}}
55
{{$branchLink := HTMLFormat `<a href="%s">%s</a>` .BranchLink .BranchDisplayName}}
66
{{ctx.Locale.Tr "repo.pulls.recently_pushed_new_branches" $branchLink $timeSince}}

0 commit comments

Comments
 (0)