Fix overflow on notifications (#31178)

Fixes https://github.com/go-gitea/gitea/issues/31170.

<img width="1312" alt="image"
src="https://github.com/go-gitea/gitea/assets/115237/627711ed-93ca-4be6-b958-10d673ae9517">

(cherry picked from commit 4f9b8b397c1acb6f6d26c55e224aafcb5474a85b)
This commit is contained in:
silverwind 2024-06-04 08:10:04 +02:00 committed by Earl Warren
parent 21b94765ce
commit 5416e4054a
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -49,14 +49,14 @@
{{end}} {{end}}
</div> </div>
<a class="notifications-link tw-flex tw-flex-1 tw-flex-col silenced" href="{{.Link ctx}}"> <a class="notifications-link tw-flex tw-flex-1 tw-flex-col silenced" href="{{.Link ctx}}">
<div class="notifications-top-row tw-text-13"> <div class="notifications-top-row tw-text-13 tw-break-anywhere">
{{.Repository.FullName}} {{if .Issue}}<span class="text light-3">#{{.Issue.Index}}</span>{{end}} {{.Repository.FullName}} {{if .Issue}}<span class="text light-3">#{{.Issue.Index}}</span>{{end}}
{{if eq .Status 3}} {{if eq .Status 3}}
{{svg "octicon-pin" 13 "text blue tw-mt-0.5 tw-ml-1"}} {{svg "octicon-pin" 13 "text blue tw-mt-0.5 tw-ml-1"}}
{{end}} {{end}}
</div> </div>
<div class="notifications-bottom-row tw-text-16 tw-py-0.5"> <div class="notifications-bottom-row tw-text-16 tw-py-0.5">
<span class="issue-title"> <span class="issue-title tw-break-anywhere">
{{if .Issue}} {{if .Issue}}
{{.Issue.Title | RenderEmoji $.Context | RenderCodeBlock}} {{.Issue.Title | RenderEmoji $.Context | RenderCodeBlock}}
{{else}} {{else}}