Skip to content

Commit

Permalink
Fix overflow on push notification (#31179) (#31238)
Browse files Browse the repository at this point in the history
Backport #31179 by @silverwind

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">

Co-authored-by: silverwind <[email protected]>
  • Loading branch information
GiteaBot and silverwind authored Jun 4, 2024
1 parent 298d05d commit 331c32f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/repo/code/recently_pushed_new_branches.tmpl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{range .RecentlyPushedNewBranches}}
<div class="ui positive message tw-flex tw-items-center">
<div class="tw-flex-1">
<div class="ui positive message tw-flex tw-items-center tw-gap-2">
<div class="tw-flex-1 tw-break-anywhere">
{{$timeSince := TimeSince .CommitTime.AsTime ctx.Locale}}
{{$branchLink := HTMLFormat `<a href="%s">%s</a>` .BranchLink .BranchDisplayName}}
{{ctx.Locale.Tr "repo.pulls.recently_pushed_new_branches" $branchLink $timeSince}}
Expand Down

0 comments on commit 331c32f

Please sign in to comment.