mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-27 03:51:08 +00:00
Merge pull request #1234 from EvilDrPurple/main
Recognize profile summary linebreaks + whitespace
This commit is contained in:
commit
d76106ded5
3 changed files with 12 additions and 2 deletions
|
@ -72,6 +72,14 @@ body {
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.preserve-whitespace p {
|
||||||
|
white-space: pre-wrap !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.display-inline p {
|
||||||
|
display: inline !important;
|
||||||
|
}
|
||||||
|
|
||||||
/** Shelving
|
/** Shelving
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div class="display-inline">
|
||||||
{% if user.summary %}
|
{% if user.summary %}
|
||||||
{{ user.summary|to_markdown|safe|truncatechars_html:40 }}
|
{{ user.summary|to_markdown|safe|truncatechars_html:40 }}
|
||||||
{% else %} {% endif %}
|
{% else %} {% endif %}
|
||||||
|
|
|
@ -28,8 +28,10 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if user.summary %}
|
{% if user.summary %}
|
||||||
<div class="column box has-background-white-bis content">
|
{% spaceless %}
|
||||||
|
<div class="column box has-background-white-bis content preserve-whitespace">
|
||||||
{{ user.summary|to_markdown|safe }}
|
{{ user.summary|to_markdown|safe }}
|
||||||
|
{% endspaceless %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue