Skip to content

Commit

Permalink
Fix ticket text wrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
kiritofeng committed Sep 1, 2024
1 parent 7cb7486 commit 2d25afb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions resources/ticket.scss
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,11 @@ div.ticket-title {
}
}

.ticket-body {
word-wrap: break-word;
word-break: break-word;
}

.new-message .detail {
padding: 8px 10px;
}
Expand Down
4 changes: 3 additions & 1 deletion templates/ticket/message.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
</span>
</div>
<div class="content content-description">
{{ message.body|markdown('ticket', MATH_ENGINE)|reference|str|safe }}
<div class="ticket-body">
{{ message.body|markdown('ticket', MATH_ENGINE)|reference|str|safe }}
</div>
</div>
</div>
</section>

0 comments on commit 2d25afb

Please sign in to comment.