Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Don't break Outdated badge
This prevents the Outdated badge on a PR from wrapping in the middle of the word for a comment on a long filename.
  • Loading branch information
parnic committed Apr 27, 2022
commit 5fa17507dd8d1189e312e3366a5fb6bb546467be
2 changes: 1 addition & 1 deletion templates/repo/issue/view_content/comments.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@
<div class="df ac">
<a href="{{(index $comms 0).CodeCommentURL}}" class="file-comment ml-3">{{$filename}}</a>
{{if $invalid }}
<span class="ui label basic small ml-3">
<span class="ui label basic small ml-3 word-break-normal">
{{$.i18n.Tr "repo.issues.review.outdated"}}
</span>
{{end}}
Expand Down
5 changes: 5 additions & 0 deletions web_src/less/helpers.less
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@
word-break: break-word;
}

.word-break-normal {
word-wrap: normal !important;
word-break: normal;
}

.ellipsis {
overflow: hidden !important;
white-space: nowrap !important;
Expand Down