fix: Break long words in cards to prevent layout jumps (#5064)

This commit is contained in:
Lars Eggert 2023-02-01 18:37:20 +02:00 committed by GitHub
parent 2954044b36
commit 7ddc09ef25
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -154,7 +154,7 @@
<div class="card-header">
{{ doc.name }}-{{ doc.rev }}
</div>
<div class="card-body">
<div class="card-body text-break">
{{ content }}
</div>
</div>

View file

@ -123,7 +123,7 @@
</p>
<div id="materials-content" class="card mt-5">
<div class="card-header">{{ doc.name }}-{{ doc.rev }}</div>
<div class="card-body">
<div class="card-body{% if content_is_html %} text-break{% endif %}">
{% if doc.rev and content != None %}
{% if content_is_html %}
{{ content|sanitize|safe }}