From 5c97066f4f06a5e6e7bc86da8593b297c9e0e2a2 Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Tue, 9 Jan 2024 18:21:40 +0800 Subject: [PATCH] [opt] friends: line limit --- source/css/_layout/tag-plugins/friends.styl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/css/_layout/tag-plugins/friends.styl b/source/css/_layout/tag-plugins/friends.styl index 7a06b26..293899c 100644 --- a/source/css/_layout/tag-plugins/friends.styl +++ b/source/css/_layout/tag-plugins/friends.styl @@ -19,7 +19,10 @@ padding: 1rem 0.5rem .name max-width: 100% - txt-ellipsis() + display: -webkit-box + -webkit-box-orient: vertical + overflow: hidden + -webkit-line-clamp: 2 img object-fit: cover display: block