Creator notes in char list are no longer first line only.
This commit is contained in:
parent
95c49029f7
commit
456c4c333f
|
@ -165,7 +165,7 @@ body.big-avatars .avatar-container .ch_description {
|
||||||
display: -webkit-box;
|
display: -webkit-box;
|
||||||
-webkit-line-clamp: 3;
|
-webkit-line-clamp: 3;
|
||||||
-webkit-box-orient: vertical;
|
-webkit-box-orient: vertical;
|
||||||
white-space: normal;
|
white-space: pre-line;
|
||||||
text-overflow: unset;
|
text-overflow: unset;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1208,7 +1208,7 @@ function getCharacterBlock(item, id) {
|
||||||
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?.split('\n', 1)[0] || '';
|
const description = item.data?.creator_notes || '';
|
||||||
if (description) {
|
if (description) {
|
||||||
template.find('.ch_description').text(description);
|
template.find('.ch_description').text(description);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue