mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Only display the first line of Creator's Notes as description
This commit is contained in:
@ -812,7 +812,7 @@ async function printCharacters() {
|
|||||||
template.toggleClass('is_fav', item.fav || item.fav == 'true');
|
template.toggleClass('is_fav', item.fav || item.fav == 'true');
|
||||||
template.find('.ch_fav').val(item.fav);
|
template.find('.ch_fav').val(item.fav);
|
||||||
|
|
||||||
const description = item.data?.creator_notes || '';
|
const description = item.data?.creator_notes.split('\n', 1)[0] || '';
|
||||||
if (description) {
|
if (description) {
|
||||||
template.find('.ch_description').text(description);
|
template.find('.ch_description').text(description);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user