@@ -213,7 +213,7 @@ <h3 class="text-sm font-medium text-purple-900">Failing PDFs</h3>
213213 currentPdfState . scale = initialScale ;
214214
215215 // Update zoom display
216- document . querySelectorAll ( '.pdf-controls span:last-of-type ' ) . forEach ( span => {
216+ document . querySelectorAll ( '.pdf-controls .zoom-level ' ) . forEach ( span => {
217217 span . textContent = `${ Math . round ( initialScale * 100 ) } %` ;
218218 } ) ;
219219
@@ -277,7 +277,7 @@ <h3 class="font-medium text-purple-900">${title}</h3>
277277 <span>Page <input type="number" value="1" min="1" onchange="setPage(this.value)"> of <span class="page-count">0</span></span>
278278 <button onclick="changePage(1)">▶</button>
279279 <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>
281281 <button onclick="changeZoom(0.1)">+</button>
282282 <button onclick="fitToWidth()">Fit</button>
283283 </div>
@@ -361,7 +361,7 @@ <h3 class="font-medium text-purple-900">${title}</h3>
361361 const newScale = ( container . clientWidth - 40 ) / viewport . width ;
362362
363363 currentPdfState . scale = newScale ;
364- document . querySelectorAll ( '.pdf-controls span:last-of-type ' ) . forEach ( span => {
364+ document . querySelectorAll ( '.pdf-controls .zoom-level ' ) . forEach ( span => {
365365 span . textContent = `${ Math . round ( newScale * 100 ) } %` ;
366366 } ) ;
367367 await updateBothPdfs ( ) ;
@@ -443,7 +443,7 @@ <h3 class="font-medium text-purple-900">Differences</h3>
443443 async function changeZoom ( delta ) {
444444 const newScale = Math . max ( 0.1 , Math . min ( 5.0 , currentPdfState . scale + delta ) ) ;
445445 currentPdfState . scale = newScale ;
446- document . querySelectorAll ( '.pdf-controls span:last-of-type ' ) . forEach ( span => {
446+ document . querySelectorAll ( '.pdf-controls .zoom-level ' ) . forEach ( span => {
447447 span . textContent = `${ Math . round ( newScale * 100 ) } %` ;
448448 } ) ;
449449 await updateBothPdfs ( ) ;
0 commit comments