From 43e5849015fb66680fbe17faa27544fd6188c14b Mon Sep 17 00:00:00 2001 From: lsaa Date: Tue, 27 Jun 2023 09:15:52 -0300 Subject: [PATCH 1/3] Only display the first line of Creator's Notes as description --- public/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/script.js b/public/script.js index 7f621320a..c2fb2cc51 100644 --- a/public/script.js +++ b/public/script.js @@ -812,7 +812,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); } From 2e9bccf9e952e03bd48bb2be99a9d2e5ca632a0e Mon Sep 17 00:00:00 2001 From: kingbri Date: Tue, 27 Jun 2023 12:13:22 -0400 Subject: [PATCH 2/3] Tags: Fix mobile exclusions Fixes mobile positioning issues and adds conditional directives. Signed-off-by: kingbri --- public/style.css | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/public/style.css b/public/style.css index a78fb5b08..3691dd41a 100644 --- a/public/style.css +++ b/public/style.css @@ -2830,6 +2830,7 @@ h5 { display: flex; flex-direction: row; align-items: center; + position: relative; gap: 10px; width: fit-content; min-width: 0; @@ -4700,6 +4701,11 @@ body.waifuMode #avatar_zoom_popup { body.waifuMode img.expression { object-fit: contain; } + + .tag.excluded:after { + top: unset; + bottom: unset; + } } @media screen and (max-width: 450px) { @@ -4710,6 +4716,11 @@ body.waifuMode #avatar_zoom_popup { .drawer33pWidth { flex-basis: max(calc(100% / 2 - 10px), 180px); } + + .tag.excluded:after { + top: unset; + bottom: unset; + } } /*this part only only applies to iOS devices*/ From d59174da772f8e53be50e2f45b9b8b25de9ed624 Mon Sep 17 00:00:00 2001 From: Cohee Date: Tue, 27 Jun 2023 19:22:42 +0300 Subject: [PATCH 3/3] Add optional chaining --- public/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/script.js b/public/script.js index e68284661..9dfc30ef4 100644 --- a/public/script.js +++ b/public/script.js @@ -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.split('\n', 1)[0] || ''; + const description = item.data?.creator_notes?.split('\n', 1)[0] || ''; if (description) { template.find('.ch_description').text(description); }