From 2e6a02a57681c157ba2dace545b606aeeeedc18d Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Mon, 12 May 2025 00:53:55 +0300 Subject: [PATCH] Add line-clamp to recent chats list --- public/css/welcome.css | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/public/css/welcome.css b/public/css/welcome.css index ab31ff1a5..5adc320fe 100644 --- a/public/css/welcome.css +++ b/public/css/welcome.css @@ -90,7 +90,7 @@ body.bubblechat .welcomePanel { .welcomeRecent .recentChatList .recentChat { display: flex; flex-direction: row; - transition: filter 0.2s; + align-items: center; padding: 5px 10px; border-radius: 10px; cursor: pointer; @@ -102,10 +102,6 @@ body.bubblechat .welcomePanel { flex: 0; } -.welcomeRecent .recentChatList .recentChat.selected { - background-color: var(--cobalt30a); -} - .welcomeRecent .recentChatList .recentChat:hover { background-color: var(--white30a); } @@ -143,11 +139,18 @@ body.bubblechat .welcomePanel { } .welcomeRecent .recentChatList .recentChat .chatMessageContainer .chatMessage { - white-space: nowrap; - text-overflow: ellipsis; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 2; + line-clamp: 2; overflow: hidden; } +body.big-avatars .welcomeRecent .recentChatList .recentChat .chatMessageContainer .chatMessage { + -webkit-line-clamp: 4; + line-clamp: 4; +} + .welcomeRecent .recentChatList .recentChat .chatStats { display: flex; flex-direction: row;