Show description of media element if set

master
Felix Stupp 2 years ago
parent 986d322f83
commit fa32bb2439
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -96,6 +96,16 @@
.element_view > .element_info {
display: block;
}
.element_view > .element_info > .description {
display: block;
font-size: .8rem;
max-width: 100%;
max-height: 16rem;
overflow-x: scroll;
overflow-y: scroll;
white-space: pre-wrap;
unicode-bidi: embed;
}
</style>
{% endmacro %}

@ -12,6 +12,9 @@
<h1>{{ title }}</h1>
<div class="element_view">
<div class="element_info">
{% if element.description != None %}
<div class="description">{{ element.description }}</div>
{% endif %}
<h2>Notes</h2>
<pre>{{ element.notes or "" }}</pre>
<h2>Properties</h2>

Loading…
Cancel
Save