@devries-cameron20 / t3code-1 / commits / 8ab40cc88e
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

fix(web): the PDF preview says "1 / 1 page" for a one-page PDF (#31885)

Co-authored-by: Julius Marminge <julius0216@outlook.com>

spoukyii committed Nov 14, 2026 at 19:55 UTC 8ab40cc88e1cb3887661f59141363655eb3f2795
1 file changed +1 -1
apps/web/src/components/files/PdfViewer.tsx
+1 -1
@@ -351,7 +351,7 @@ export default function PdfViewer(props: {
351 <div className="flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden">
352 <div className="flex min-h-10 shrink-0 flex-wrap items-center gap-1 border-b border-border/60 px-2 py-1 text-xs">
353 <span className="mr-auto px-1 tabular-nums" aria-live="polite">
354 - {pdf ? `${current + 1} / ${pdf.numPages} pages` : "PDF"}
354 + {pdf ? `${current + 1} / ${pdf.numPages} page${pdf.numPages === 1 ? "" : "s"}` : "PDF"}
355 </span>
356 <FileSurfaceAction
357 label="Previous page"