@@ -213,7 +213,7 @@ <h3 class="text-sm font-medium text-purple-900">Failing PDFs</h3>
213
213
currentPdfState . scale = initialScale ;
214
214
215
215
// Update zoom display
216
- document . querySelectorAll ( '.pdf-controls span:last-of-type ' ) . forEach ( span => {
216
+ document . querySelectorAll ( '.pdf-controls .zoom-level ' ) . forEach ( span => {
217
217
span . textContent = `${ Math . round ( initialScale * 100 ) } %` ;
218
218
} ) ;
219
219
@@ -277,7 +277,7 @@ <h3 class="font-medium text-purple-900">${title}</h3>
277
277
<span>Page <input type="number" value="1" min="1" onchange="setPage(this.value)"> of <span class="page-count">0</span></span>
278
278
<button onclick="changePage(1)">▶</button>
279
279
<button onclick="changeZoom(-0.1)">-</button>
280
- <span>${ Math . round ( currentPdfState . scale * 100 ) } %</span>
280
+ <span class="zoom-level" >${ Math . round ( currentPdfState . scale * 100 ) } %</span>
281
281
<button onclick="changeZoom(0.1)">+</button>
282
282
<button onclick="fitToWidth()">Fit</button>
283
283
</div>
@@ -361,7 +361,7 @@ <h3 class="font-medium text-purple-900">${title}</h3>
361
361
const newScale = ( container . clientWidth - 40 ) / viewport . width ;
362
362
363
363
currentPdfState . scale = newScale ;
364
- document . querySelectorAll ( '.pdf-controls span:last-of-type ' ) . forEach ( span => {
364
+ document . querySelectorAll ( '.pdf-controls .zoom-level ' ) . forEach ( span => {
365
365
span . textContent = `${ Math . round ( newScale * 100 ) } %` ;
366
366
} ) ;
367
367
await updateBothPdfs ( ) ;
@@ -443,7 +443,7 @@ <h3 class="font-medium text-purple-900">Differences</h3>
443
443
async function changeZoom ( delta ) {
444
444
const newScale = Math . max ( 0.1 , Math . min ( 5.0 , currentPdfState . scale + delta ) ) ;
445
445
currentPdfState . scale = newScale ;
446
- document . querySelectorAll ( '.pdf-controls span:last-of-type ' ) . forEach ( span => {
446
+ document . querySelectorAll ( '.pdf-controls .zoom-level ' ) . forEach ( span => {
447
447
span . textContent = `${ Math . round ( newScale * 100 ) } %` ;
448
448
} ) ;
449
449
await updateBothPdfs ( ) ;
0 commit comments