Skip to content

Commit

Permalink
Wrap long page titles (#100)
Browse files Browse the repository at this point in the history
Instead of truncating longer page titles, wrap them onto as many
lines as they need.

See https://github.local/Design-Development/Design-and-Content-Team/issues/507
  • Loading branch information
contolini authored Aug 9, 2024
1 parent 1c8e357 commit aacef5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions viewer/templates/viewer/page_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
{% for page in results %}
<li class="results-list__item">
<h4>
<a class="a-link a-link--icon u-nowrap" href="{{ page.url }}">
<span class="a-link__text u-truncate">{{ page.title }}</span>
<a class="a-link a-link--icon" href="{{ page.url }}">
<span class="a-link__text">{{ page.title }}</span>
{% include "external-link.svg" %}</a
>
</h4>
Expand Down

0 comments on commit aacef5d

Please sign in to comment.