summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2024-03-20 12:32:51 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2024-03-20 12:40:28 +0100
commit446e89b725960ef1f7cf5c6e591de561c8434ba9 (patch)
treeba5f286d07eac5062448218f4fc6c594448e36be
parent07b99239089d6e40eaac68dd2490ab8aa0538988 (diff)
downloadIshtar-446e89b725960ef1f7cf5c6e591de561c8434ba9.tar.bz2
Ishtar-446e89b725960ef1f7cf5c6e591de561c8434ba9.zip
🩹 Sheet: prevent overflow of file name on other fields (refs #5835)
-rw-r--r--ishtar_common/templates/ishtar/blocks/window_field_flex_file.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/ishtar_common/templates/ishtar/blocks/window_field_flex_file.html b/ishtar_common/templates/ishtar/blocks/window_field_flex_file.html
index 0a79176d6..83271facb 100644
--- a/ishtar_common/templates/ishtar/blocks/window_field_flex_file.html
+++ b/ishtar_common/templates/ishtar/blocks/window_field_flex_file.html
@@ -2,8 +2,8 @@
<dl class="col-12 col-md-6 col-lg-3 flex-wrap">
<dt>{% trans caption %}</dt>
<dd>
- <a href="{{link|safe}}" class="btn btn-secondary" target="_blank">
- {% if link_name %}{{link_name}}{% else %}{{link}}{% endif %}
+ <a href="{{link|safe}}" class="btn btn-secondary" target="_blank" title="{% if link_name %}{{link_name}}{% else %}{{link}}{% endif %}">
+ {% if link_name %}{{link_name|truncatechars:18}}{% else %}{{link|truncatechars:18}}{% endif %}
</a>
</dd>
</dl>