diff --git a/src/app.html b/src/app.html index d13ed15..d9fe3e1 100644 --- a/src/app.html +++ b/src/app.html @@ -11,6 +11,9 @@ %sveltekit.head% -
%sveltekit.body%
+
%sveltekit.body%
diff --git a/src/lib/components/Reader/MangaPage.svelte b/src/lib/components/Reader/MangaPage.svelte index 704e269..d971e47 100644 --- a/src/lib/components/Reader/MangaPage.svelte +++ b/src/lib/components/Reader/MangaPage.svelte @@ -9,9 +9,18 @@ $: url = src ? `url(${URL.createObjectURL(src)})` : ''; + let legacy: HTMLElement | null; + onMount(() => { + legacy = document.getElementById('popupAbout'); zoomDefault(); }); + + $: { + if (legacy) { + legacy.style.backgroundImage = url; + } + }
-{#each textBoxes as { fontSize, height, left, lines, top, width, writingMode }, index (`text-box-${index}`)} +{#each textBoxes as { fontSize, height, left, lines, top, width, writingMode }, index (`textBox-${index}`)}
- .text-box { + .textBox { color: black; padding: 0; position: absolute; @@ -102,13 +102,13 @@ z-index: 11; } - .text-box:focus, - .text-box:hover { + .textBox:focus, + .textBox:hover { background: rgb(255, 255, 255); border: 1px solid rgba(0, 0, 0, 0); } - .text-box p { + .textBox p { display: none; white-space: nowrap; letter-spacing: 0.1em; @@ -119,8 +119,8 @@ z-index: 11; } - .text-box:focus p, - .text-box:hover p { + .textBox:focus p, + .textBox:hover p { display: table; }