diff --git a/public/style.css b/public/style.css index b3af04423..a65fcd197 100644 --- a/public/style.css +++ b/public/style.css @@ -4322,6 +4322,11 @@ h5 { .select_chat_block_mes { font-size: calc(var(--mainFontSize) - .25rem); + display: -webkit-box; + -webkit-line-clamp: 3; + -webkit-box-orient: vertical; + line-clamp: 3; + overflow: hidden; } .PastChat_cross { diff --git a/src/endpoints/chats.js b/src/endpoints/chats.js index 6cc165b0f..aec0ba6e4 100644 --- a/src/endpoints/chats.js +++ b/src/endpoints/chats.js @@ -71,7 +71,7 @@ function formatBytes(bytes) { * @returns {string} A truncated preview of the last message or empty string if no messages */ function getPreviewMessage(messages) { - const strlen = 300; + const strlen = 400; const lastMessage = messages[messages.length - 1]?.mes; if (!lastMessage) {