1

fix text overflow in groupdescription

This commit is contained in:
killerber4t
2020-03-18 13:08:35 +01:00
parent 0828c278dc
commit a6667e4091
4 changed files with 4 additions and 4 deletions

View File

@ -7,6 +7,6 @@ CREATE TABLE event
event_id INT PRIMARY KEY AUTO_INCREMENT,
group_id INT NOT NULL,
user_id VARCHAR(50),
event_payload VARCHAR(255),
event_payload VARCHAR(2500),
visibility BOOLEAN
);

View File

@ -36,7 +36,7 @@
<span class="badge badge-pill badge-primary" th:if='${group.getVisibility() == group.getVisibility().PUBLIC}'>Öffentliche Gruppe</span>
<span class="badge badge-pill badge-success" style="background: lightseagreen" th:if='${group.getType() == group.getType().LECTURE}'> Veranstaltung</span>
</p>
<p th:text="${group.getDescription()}"></p>
<p style="overflow-wrap: break-word" th:text="${group.getDescription()}"></p>
<div class="form-group">
<div class="text-right">
<form method="post" action="/gruppen2/leaveGroup">

View File

@ -35,7 +35,7 @@
<h3 style="color: dodgerblue; font-weight: bold;">
<a th:href="@{/gruppen2/details(id=${gruppe.getId()})}" th:text="${gruppe.getTitle()}"></a>
</h3>
<p th:text="${gruppe.getDescription()}"></p>
<p style="overflow-wrap: break-word" th:text="${#strings.abbreviate(gruppe.getDescription(),300)}"></p>
</div>
<br>
</div>

View File

@ -53,7 +53,7 @@
<th scope="row">
<a th:href="@{/gruppen2/detailsSearch(id=${gruppe.getId()})}" th:text="${gruppe.title}">Gruppenname</a>
</th>
<td th:text="${gruppe.getDescription()}">Beschreibung</td>
<td style="" th:text="${#strings.abbreviate(gruppe.getDescription(), 50)}">Beschreibung</td>
<td th:text="${gruppe.getMembers().size()}">Mitgliederanzahl</td>
</tr>
</tbody>