Skip to content

Commit

Permalink
Refactor: Update timeline stop name styling and add ellipsis for long…
Browse files Browse the repository at this point in the history
… names
  • Loading branch information
drikusroor committed Oct 4, 2024
1 parent 64a6099 commit 5b06bc8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/blog/templates/blog/includes/timeline.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
data-end-date="{{ stop.end_date }}"
title="{{ stop.name }} - {{ stop.start_date }} - {{ stop.end_date }}"
>
<span class="text-white text-xs font-bold">{{ stop.name }}</span>
<span class="text-white text-xs font-bold whitespace-nowrap overflow-hidden overflow-ellipsis" style="max-width: 100px;">
{{ stop.name }}
</span>
<div class="text-xs text-gray-600">{{ start_date|date:"M j" }}</div>
</div>
{% if not forloop.last %}
Expand Down
4 changes: 4 additions & 0 deletions src/brazil_blog/static/css/brazil_blog_compiled.css
Original file line number Diff line number Diff line change
Expand Up @@ -1905,6 +1905,10 @@ select {
overflow-y: auto;
}

.overflow-ellipsis {
text-overflow: ellipsis;
}

.whitespace-nowrap {
white-space: nowrap;
}
Expand Down

0 comments on commit 5b06bc8

Please sign in to comment.