Skip to content

Commit

Permalink
modules/tiles: using combination of overflow-wrap hyphens and smaller…
Browse files Browse the repository at this point in the history
… fontsize to asssure proper word wrapping
  • Loading branch information
Kha committed May 25, 2022
1 parent e216b0d commit 11dbc34
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@

.participation-tile__content {
padding: 1.5 * $padding;
overflow-wrap: normal;
hyphens: auto;

@media (min-width: $breakpoint-lg) {
hyphens: none;
}
}

.participation-tile__horizontal,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<a href="{{ module.get_absolute_url }}">
<div class="participation-tile__type">
<div class="participation-tile__content">
<h3 class="participation-tile__title">{{ module.name|truncatechars:100 }}</h3>
<h4 class="participation-tile__title">{{ module.name|truncatechars:100 }}</h4>
<span class="participation-tile__item-count">
<i class="fas fa-comments" aria-hidden="true"></i>
{% get_num_entries module as num_entries %}
Expand Down

0 comments on commit 11dbc34

Please sign in to comment.