Compare commits
3 Commits
50cc28da47
...
feat/38-do
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ca5726e7c3 | ||
|
|
0ef81e20f6 | ||
|
|
1ad8fffd1b |
@@ -141,7 +141,10 @@ $effect(() => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
$effect(() => {
|
$effect(() => {
|
||||||
if (pdfDoc && currentPage) {
|
// Read scale synchronously so Svelte tracks it as a dependency.
|
||||||
|
// 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,6 +3,7 @@ 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