Compare commits
2 Commits
feat/38-do
...
50cc28da47
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
50cc28da47 | ||
|
|
c98d31e19f |
@@ -141,10 +141,7 @@ $effect(() => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
$effect(() => {
|
$effect(() => {
|
||||||
// Read scale synchronously so Svelte tracks it as a dependency.
|
if (pdfDoc && currentPage) {
|
||||||
// Without this, zoom changes don't re-trigger the effect because
|
|
||||||
// scale is only read inside the async renderPage call.
|
|
||||||
if (pdfDoc && currentPage && scale > 0) {
|
|
||||||
renderPage(pdfDoc, currentPage).then(() => {
|
renderPage(pdfDoc, currentPage).then(() => {
|
||||||
if (pdfDoc) prerender(pdfDoc, currentPage);
|
if (pdfDoc) prerender(pdfDoc, currentPage);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ import { m } from '$lib/paraglide/messages.js';
|
|||||||
import { formatDate } from '$lib/utils/date';
|
import { formatDate } from '$lib/utils/date';
|
||||||
import { diffWords } from 'diff';
|
import { diffWords } from 'diff';
|
||||||
import ExpandableText from '$lib/components/ExpandableText.svelte';
|
import ExpandableText from '$lib/components/ExpandableText.svelte';
|
||||||
import PdfViewer from '$lib/components/PdfViewer.svelte';
|
|
||||||
|
|
||||||
let { data } = $props();
|
let { data } = $props();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user