Increase reference text on 1st expansion to 3 lines and 140 characters

This commit is contained in:
Debanjum Singh Solanky 2023-11-10 18:29:52 -08:00
parent 0a950d9382
commit 501e7606a0
2 changed files with 3 additions and 3 deletions

View file

@ -577,7 +577,7 @@
cursor: pointer;
transition: background 0.2s ease-in-out;
text-align: left;
max-height: 50px;
max-height: 75px;
transition: max-height 0.3s ease-in-out;
overflow: hidden;
}

View file

@ -43,7 +43,7 @@ To get started, just start typing below. You can also type / to see a list of co
let escaped_ref = reference.replaceAll('"', '"');
// Generate HTML for Chat Reference
let short_ref = escaped_ref.slice(0, 100);
let short_ref = escaped_ref.slice(0, 140);
short_ref = short_ref.length < escaped_ref.length ? short_ref + "..." : short_ref;
let referenceButton = document.createElement('button');
referenceButton.innerHTML = short_ref;
@ -447,7 +447,7 @@ To get started, just start typing below. You can also type / to see a list of co
cursor: pointer;
transition: background 0.2s ease-in-out;
text-align: left;
max-height: 50px;
max-height: 75px;
transition: max-height 0.3s ease-in-out;
overflow: hidden;
}