Merge pull request #580 from lsaa/first-line-desc-cutoff

Limit the character list sysnopsis to the first line of Creator's Notes
This commit is contained in:
Cohee
2023-06-27 19:20:03 +03:00
committed by GitHub

View File

@ -814,7 +814,7 @@ async function printCharacters() {
template.toggleClass('is_fav', item.fav || item.fav == 'true');
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) {
template.find('.ch_description').text(description);
}