fix(activity-detail): preserve line breaks in activity descriptions (#22)

- implement new CSS class `preserve-linebreaks` in `fitpub.css`
- add new CSS class to activity description element in `detail.html`
This commit is contained in:
Marcus Fihlon 2026-04-29 09:18:53 +02:00 committed by GitHub
parent 330040c775
commit c84377b05a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View file

@ -92,6 +92,11 @@ p,
letter-spacing: normal;
}
/* Preserve line-breaks */
.preserve-linebreaks {
white-space: pre-line;
}
/* Navigation */
.navbar {
background: linear-gradient(135deg, var(--dark-color) 0%, #2d0052 100%) !important;

View file

@ -53,7 +53,7 @@
<span id="activityVisibility"></span>
</span>
</p>
<p id="activityDescription" class="text-muted"></p>
<p id="activityDescription" class="preserve-linebreaks text-muted"></p>
</div>
<div class="btn-group" role="group" id="activityActions" style="display: none;">
<a href="#" id="editBtn" class="btn btn-outline-primary">