diff options
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 |
commit | 446e89b725960ef1f7cf5c6e591de561c8434ba9 (patch) | |
tree | ba5f286d07eac5062448218f4fc6c594448e36be | |
parent | 07b99239089d6e40eaac68dd2490ab8aa0538988 (diff) | |
download | Ishtar-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.html | 4 |
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> |