Skip to content

Commit a51d31c

Browse files
authored
fix(typography): long string for update-list is not truncated (#1050)
Resolves #1049
1 parent eb40f51 commit a51d31c

File tree

2 files changed

+3
-15
lines changed

2 files changed

+3
-15
lines changed

_includes/update-list.html

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
{% comment %}
2-
Get the last 5 posts from lastmod list.
3-
{% endcomment %}
1+
<!-- Get the last 5 posts from lastmod list. -->
42

53
{% assign MAX_SIZE = 5 %}
64

@@ -26,12 +24,12 @@
2624
{% if update_list.size > 0 %}
2725
<div id="access-lastmod" class="post">
2826
<div class="panel-heading">{{- site.data.locales[include.lang].panel.lastmod -}}</div>
29-
<ul class="post-content ps-0 pb-1 ms-1 mt-2">
27+
<ul class="post-content list-unstyled ps-0 pb-1 ms-1 mt-2">
3028
{% for item in update_list %}
3129
{% assign index = item | split: '::' | last | plus: 0 %}
3230
{% assign post = site.posts[index] %}
3331
{% assign url = post.url | relative_url %}
34-
<li>
32+
<li class="text-truncate lh-lg">
3533
<a href="{{ url }}">{{ post.title }}</a>
3634
</li>
3735
{% endfor %}

_sass/addon/commons.scss

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -255,16 +255,6 @@ i {
255255
}
256256

257257
#access-lastmod {
258-
li {
259-
height: 1.8rem;
260-
overflow: hidden;
261-
text-overflow: ellipsis;
262-
display: -webkit-box;
263-
-webkit-line-clamp: 1;
264-
-webkit-box-orient: vertical;
265-
list-style: none;
266-
}
267-
268258
a {
269259
&:hover {
270260
@extend %link-hover;

0 commit comments

Comments
 (0)