From fa32bb2439ebadfd62f797ab9b8feb6714cdfaed Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Sun, 6 Nov 2022 11:47:28 +0100 Subject: [PATCH] Show description of media element if set --- server/templates/macros.htm | 10 ++++++++++ server/templates/media_element.htm | 3 +++ 2 files changed, 13 insertions(+) diff --git a/server/templates/macros.htm b/server/templates/macros.htm index bd15fc4..25ebbbc 100644 --- a/server/templates/macros.htm +++ b/server/templates/macros.htm @@ -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; + } {% endmacro %} diff --git a/server/templates/media_element.htm b/server/templates/media_element.htm index 224b3ac..4772e91 100644 --- a/server/templates/media_element.htm +++ b/server/templates/media_element.htm @@ -12,6 +12,9 @@

{{ title }}

+ {% if element.description != None %} +
{{ element.description }}
+ {% endif %}

Notes

{{ element.notes or "" }}

Properties