Add word-break on forum thread & reply

When someone inserts long word, is will break into multiple lines
This commit is contained in:
slawkens 2023-06-30 19:32:47 +02:00
parent 3a52f2c403
commit 8cf4d0cb0f
2 changed files with 3 additions and 3 deletions

View File

@ -54,7 +54,7 @@
</tr> </tr>
{% set i = 0 %} {% set i = 0 %}
{% for thread in threads %} {% 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 %} {% set i = i + 1 %}
{% endfor %} {% endfor %}
</table> </table>

View File

@ -40,7 +40,7 @@ Page: {{ links_to_pages|raw }}<br/>
<br />Posts: {{ post.author_posts_count }}<br /> <br />Posts: {{ post.author_posts_count }}<br />
</span> </span>
</td> </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) }}"> <tr bgcolor="{{ getStyle(i) }}">
<td> <td>
<span style="font-size: 10px">{{ post.date|date('d.m.y H:i:s') }} <span style="font-size: 10px">{{ post.date|date('d.m.y H:i:s') }}