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-04-16 16:43:03 +0200
commit3a857e52632c6d5b6648346c4459df35889aeb43 (patch)
tree7e3c028da10d9319d5d1c0d1e29238355d534253
parente98758c4792701d49ba6751a0cf1e424ad13b488 (diff)
downloadIshtar-3a857e52632c6d5b6648346c4459df35889aeb43.tar.bz2
Ishtar-3a857e52632c6d5b6648346c4459df35889aeb43.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>