From 4616c2e1d8b2587cd02e592c503d910a5e28a577 Mon Sep 17 00:00:00 2001 From: Tipx-L <138244655+Tipx-L@users.noreply.github.com> Date: Mon, 25 Sep 2023 08:07:47 -0700 Subject: [PATCH] Finish the CSS. (Credit to https://codepen.io/P1N2O/pen/pyBNzX) --- game/game.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/game/game.js b/game/game.js index 4c244bd85..7853c3465 100644 --- a/game/game.js +++ b/game/game.js @@ -3987,6 +3987,7 @@ style.width='150px'; const firstChild=node.firstChild; firstChild.removeAttribute('class'); + firstChild.style.position='initial'; if(link=='false') return; const ruby=document.createElement('ruby'); ruby.textContent=name; @@ -53639,9 +53640,9 @@ characterIntroTable.appendChild(ruby); const characterSexDiv=ui.create.div('.character-sex',characterIntroTable),exInfoSex=exInfo&&exInfo.find(value=>value.indexOf('sex:')==0),characterSex=exInfoSex?exInfoSex.split(':').pop():nameInfo[0]; new Promise((resolve,reject)=>{ - const imageName=`sex_${characterSex}`,info=lib.card[imageName]; - if(!info) resolve(`${lib.assetURL}image/card/${imageName}.png`); - const image=info.image; + const imageName=`sex_${characterSex}`,information=lib.card[imageName]; + if(!information) resolve(`${lib.assetURL}image/card/${imageName}.png`); + const image=information.image; if(!image) resolve(`${lib.assetURL}image/card/${imageName}.png`); else if(image.indexOf('db:')==0) game.getDB('file',image.slice(3)).then(resolve,reject); else if(image.indexOf('ext:')==0) resolve(`${lib.assetURL}${image.replace(/ext:/,'extension/')}`);