diff --git a/README.md b/README.md index f4dec98..1179604 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Portfolio New +# Portfolio New Bu monorepo, Next.js tabanlı portfolyo web uygulaması ve Electron ile geliştirilen veri yönetim panelini bir arada sunar. diff --git a/components/content-content.tsx b/components/content-content.tsx index a72a5b4..943a1be 100644 --- a/components/content-content.tsx +++ b/components/content-content.tsx @@ -54,7 +54,7 @@ function PdfFirstPagePreview({ src, title }: { src: string; title: string }) { }; const page = await pdf.getPage(1); - const viewport = page.getViewport({ scale: 1.2 }); + const viewport = page.getViewport({ scale: 1 }); const canvas = canvasRef.current; if (!canvas || cancelled) return; @@ -64,8 +64,8 @@ function PdfFirstPagePreview({ src, title }: { src: string; title: string }) { const ratio = window.devicePixelRatio || 1; canvas.width = Math.floor(viewport.width * ratio); canvas.height = Math.floor(viewport.height * ratio); - canvas.style.width = `${viewport.width}px`; - canvas.style.height = `${viewport.height}px`; + canvas.style.width = "100%"; + canvas.style.height = "auto"; context.setTransform(ratio, 0, 0, ratio, 0, 0); await page.render({ canvasContext: context, viewport }).promise; @@ -97,8 +97,8 @@ function PdfFirstPagePreview({ src, title }: { src: string; title: string }) { } return ( -
- +
+
); } @@ -231,7 +231,7 @@ export function ContentContent({ LinkedIn PDF Notları -
+
{pdfFiles.map((pdf, index) => ( ))} @@ -348,11 +346,7 @@ export function ContentContent({ {activePdf ? (
-