mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-10 17:10:45 +01:00
Extend message preview length
This commit is contained in:
parent
e0e60a1d00
commit
47b7745ceb
@ -4322,6 +4322,11 @@ h5 {
|
|||||||
|
|
||||||
.select_chat_block_mes {
|
.select_chat_block_mes {
|
||||||
font-size: calc(var(--mainFontSize) - .25rem);
|
font-size: calc(var(--mainFontSize) - .25rem);
|
||||||
|
display: -webkit-box;
|
||||||
|
-webkit-line-clamp: 3;
|
||||||
|
-webkit-box-orient: vertical;
|
||||||
|
line-clamp: 3;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.PastChat_cross {
|
.PastChat_cross {
|
||||||
|
@ -71,7 +71,7 @@ function formatBytes(bytes) {
|
|||||||
* @returns {string} A truncated preview of the last message or empty string if no messages
|
* @returns {string} A truncated preview of the last message or empty string if no messages
|
||||||
*/
|
*/
|
||||||
function getPreviewMessage(messages) {
|
function getPreviewMessage(messages) {
|
||||||
const strlen = 300;
|
const strlen = 400;
|
||||||
const lastMessage = messages[messages.length - 1]?.mes;
|
const lastMessage = messages[messages.length - 1]?.mes;
|
||||||
|
|
||||||
if (!lastMessage) {
|
if (!lastMessage) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user