Skip to content

Commit

Permalink
Add word-break on forum thread & reply
Browse files Browse the repository at this point in the history
When someone inserts long word, is will break into multiple lines
  • Loading branch information
slawkens committed Jun 30, 2023
1 parent d0c82f6 commit ce4aed0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions system/templates/forum.new_post.html.twig
Expand Up @@ -54,7 +54,7 @@
</tr>
{% set i = 0 %}
{% for thread in threads %}
<tr bgcolor="{{ getStyle(i) }}"><td>{{ thread.name }}</td><td>{{ thread.post|raw }}</td></tr>
<tr bgcolor="{{ getStyle(i) }}"><td>{{ thread.name }}</td><td style="word-break: break-all">{{ thread.post|raw }}</td></tr>
{% set i = i + 1 %}
{% endfor %}
</table>
</table>
2 changes: 1 addition & 1 deletion system/templates/forum.show_thread.html.twig
Expand Up @@ -40,7 +40,7 @@ Page: {{ links_to_pages|raw }}<br/>
<br />Posts: {{ post.author_posts_count }}<br />
</span>
</td>
<td valign="top">{{ post.content|raw }} </td></tr>
<td valign="top" style="word-break: break-all">{{ post.content|raw }} </td></tr>
<tr bgcolor="{{ getStyle(i) }}">
<td>
<span style="font-size: 10px">{{ post.date|date('d.m.y H:i:s') }}
Expand Down

0 comments on commit ce4aed0

Please sign in to comment.