Skip to content

Commit 3d239b1

Browse files
committed
make it wrap
1 parent 46896f2 commit 3d239b1

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

templates/repo/diff/compare.tmpl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,13 +184,13 @@
184184
{{end}}
185185
{{else if and .PageIsComparePull (gt .CommitCount 0)}}
186186
{{if .HasPullRequest}}
187-
<div class="ui segment flex-text-block">
188-
<div class="issue-title gt-ellipsis tw-flex-1">
189-
{{template "shared/issueicon" .}}
187+
<div class="ui segment flex-text-block tw-gap-3">
188+
{{template "shared/issueicon" .}}
189+
<div class="issue-title tw-break-anywhere">
190190
{{RenderIssueTitle $.Context .PullRequest.Issue.Title ($.Repository.ComposeMetas ctx) | RenderCodeBlock}}
191191
<span class="index">#{{.PullRequest.Issue.Index}}</span>
192192
</div>
193-
<a href="{{$.RepoLink}}/pulls/{{.PullRequest.Issue.Index}}" class="ui compact button primary">
193+
<a href="{{$.RepoLink}}/pulls/{{.PullRequest.Issue.Index}}" class="ui compact button primary tw-whitespace-nowrap">
194194
{{ctx.Locale.Tr "repo.pulls.view"}}
195195
</a>
196196
</div>

web_src/css/helpers.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ only use:
5252
*/
5353
.tw-hidden.tw-hidden { display: none !important; }
5454

55+
/* proposed class from https://github.com/tailwindlabs/tailwindcss/pull/12128 */
56+
.tw-break-anywhere { overflow-wrap: anywhere; }
57+
5558
@media (max-width: 767.98px) {
5659
/* double selector so it wins over .tw-flex (old .gt-df) etc */
5760
.not-mobile.not-mobile {

0 commit comments

Comments
 (0)