From 456c4c333f899594d928fa1cff2f4acd5561771a Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Sat, 2 Mar 2024 19:46:59 +0200 Subject: [PATCH] Creator notes in char list are no longer first line only. --- public/css/toggle-dependent.css | 2 +- public/script.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/css/toggle-dependent.css b/public/css/toggle-dependent.css index ea440fb9c..e405b0eca 100644 --- a/public/css/toggle-dependent.css +++ b/public/css/toggle-dependent.css @@ -165,7 +165,7 @@ body.big-avatars .avatar-container .ch_description { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; - white-space: normal; + white-space: pre-line; text-overflow: unset; } diff --git a/public/script.js b/public/script.js index a08d989ee..dcab37d2a 100644 --- a/public/script.js +++ b/public/script.js @@ -1208,7 +1208,7 @@ function getCharacterBlock(item, id) { template.toggleClass('is_fav', item.fav || item.fav == 'true'); 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) { template.find('.ch_description').text(description); }