修复章节显示的错位

This commit is contained in:
unanmed 2023-04-22 10:17:04 +08:00
parent 70f26922b9
commit 2868a38493

View File

@ -41,8 +41,6 @@ onMounted(async () => {
can.style.width = `${window.innerWidth}px`; can.style.width = `${window.innerWidth}px`;
can.style.height = `${window.innerHeight}px`; can.style.height = `${window.innerHeight}px`;
text.style.left = `${w + 10}px`; text.style.left = `${w + 10}px`;
text.style.top = `47.5vh`;
text.style.height = `5vh`;
text.style.width = `${textWidth}px`; text.style.width = `${textWidth}px`;
let soundPlayed = false; let soundPlayed = false;
@ -128,16 +126,19 @@ onMounted(async () => {
left: 0; left: 0;
top: 0; top: 0;
user-select: none; user-select: none;
display: flex;
align-items: center;
} }
#chapter-back { #chapter-back {
position: fixed;
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
#chapter-text { #chapter-text {
position: fixed; position: relative;
font-family: 'scroll'; font-family: 'normal';
font-size: 5vh; font-size: 5vh;
text-shadow: 0px 0px 5px #fff; text-shadow: 0px 0px 5px #fff;
} }