From a51d31c55a37fbe034f0b0f699f4df0b6a14ba8f Mon Sep 17 00:00:00 2001
From: Cotes Chung <11371340+cotes2020@users.noreply.github.com>
Date: Fri, 19 May 2023 01:50:45 +0800
Subject: [PATCH] fix(typography): long string for update-list is not truncated
(#1050)
Resolves #1049
---
_includes/update-list.html | 8 +++-----
_sass/addon/commons.scss | 10 ----------
2 files changed, 3 insertions(+), 15 deletions(-)
diff --git a/_includes/update-list.html b/_includes/update-list.html
index 8d6e4b6..0ab7a45 100644
--- a/_includes/update-list.html
+++ b/_includes/update-list.html
@@ -1,6 +1,4 @@
-{% comment %}
- Get the last 5 posts from lastmod list.
-{% endcomment %}
+
{% assign MAX_SIZE = 5 %}
@@ -26,12 +24,12 @@
{% if update_list.size > 0 %}
{{- site.data.locales[include.lang].panel.lastmod -}}
-
+
{% for item in update_list %}
{% assign index = item | split: '::' | last | plus: 0 %}
{% assign post = site.posts[index] %}
{% assign url = post.url | relative_url %}
- -
+
-
{{ post.title }}
{% endfor %}
diff --git a/_sass/addon/commons.scss b/_sass/addon/commons.scss
index 593076c..a50eca4 100644
--- a/_sass/addon/commons.scss
+++ b/_sass/addon/commons.scss
@@ -255,16 +255,6 @@ i {
}
#access-lastmod {
- li {
- height: 1.8rem;
- overflow: hidden;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-line-clamp: 1;
- -webkit-box-orient: vertical;
- list-style: none;
- }
-
a {
&:hover {
@extend %link-hover;