Skip to content

Commit c940efa

Browse files
committed
feat: pdf full screen
1 parent 13da419 commit c940efa

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/pdfViewer.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,11 @@ export default function PdfViewer({ url, name }: PdfViewerProps) {
149149
<div className="flex flex-col items-center">
150150
<div
151151
ref={containerRef}
152-
className="max-h-[70vh] overflow-auto border border-gray-300 shadow-lg"
152+
className="max-h-[70vh] w-fit overflow-auto bg-[#F3F5FF] shadow-lg dark:bg-[#070114]"
153153
>
154154
<Document
155155
file={url}
156+
className={"w-fit"}
156157
onLoadSuccess={onDocumentLoadSuccess}
157158
error={
158159
<div className="p-4 text-red-500">Failed to load PDF file.</div>
@@ -186,7 +187,7 @@ export default function PdfViewer({ url, name }: PdfViewerProps) {
186187
</Document>
187188
</div>
188189

189-
<div className="mt-4 flex flex-col items-center gap-4 rounded-lg bg-[#262635] p-4 shadow sm:flex-row">
190+
<div className="mt-4 flex flex-col items-center gap-4 rounded-lg bg-[#F3F5FF] p-4 shadow dark:bg-[#262635] sm:flex-row">
190191
<div className="flex items-center gap-2">
191192
<Button
192193
onClick={goToPreviousPage}

0 commit comments

Comments
 (0)