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:
parent
330040c775
commit
c84377b05a
2 changed files with 6 additions and 1 deletions
|
|
@ -92,6 +92,11 @@ p,
|
||||||
letter-spacing: normal;
|
letter-spacing: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Preserve line-breaks */
|
||||||
|
.preserve-linebreaks {
|
||||||
|
white-space: pre-line;
|
||||||
|
}
|
||||||
|
|
||||||
/* Navigation */
|
/* Navigation */
|
||||||
.navbar {
|
.navbar {
|
||||||
background: linear-gradient(135deg, var(--dark-color) 0%, #2d0052 100%) !important;
|
background: linear-gradient(135deg, var(--dark-color) 0%, #2d0052 100%) !important;
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,7 @@
|
||||||
<span id="activityVisibility"></span>
|
<span id="activityVisibility"></span>
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
<p id="activityDescription" class="text-muted"></p>
|
<p id="activityDescription" class="preserve-linebreaks text-muted"></p>
|
||||||
</div>
|
</div>
|
||||||
<div class="btn-group" role="group" id="activityActions" style="display: none;">
|
<div class="btn-group" role="group" id="activityActions" style="display: none;">
|
||||||
<a href="#" id="editBtn" class="btn btn-outline-primary">
|
<a href="#" id="editBtn" class="btn btn-outline-primary">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue