mirror of
https://github.com/wallabag/wallabag.git
synced 2025-06-27 16:36:00 +00:00
Replace hardcoded title truncate with CSS text-overflow
Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
This commit is contained in:
parent
e6ce9c524c
commit
260beeec68
2 changed files with 11 additions and 2 deletions
|
@ -4,10 +4,10 @@
|
|||
{% endif %}
|
||||
{% if is_granted('VIEW', entry) %}
|
||||
<a href="{{ path('view', {'id': entry.id}) }}" title="{{ entry.title|striptags|e('html_attr') }}" class="card-title dot-ellipsis dot-resize-update">
|
||||
{{ entry.title|striptags|u.truncate(80, '…', false)|default('entry.default_title'|trans)|raw }}
|
||||
{{ entry.title|striptags|default('entry.default_title'|trans)|raw }}
|
||||
</a>
|
||||
{% else %}
|
||||
{{ entry.title|striptags|u.truncate(80, '…', false)|default('entry.default_title'|trans)|raw }}
|
||||
{{ entry.title|striptags|default('entry.default_title'|trans)|raw }}
|
||||
{% endif %}
|
||||
|
||||
<div class="{{ subClass|default('original grey-text') }}">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue