Skip to content

Commit a333ff6

Browse files
authored
Merge pull request #191 from CodeChefVIT/staging
bug fixes
2 parents 50d6cf9 + 82a7dce commit a333ff6

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/components/pdfViewer.tsx

+6-4
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,7 @@ export default function PdfViewer({ url, name }: PdfViewerProps) {
9797
{/* Controls */}
9898
<div className="mt-4 flex flex-col items-center gap-4 rounded-lg bg-[#262635] p-4 shadow sm:flex-row">
9999
{/* Page Navigation */}
100-
<ShareButton />
101-
<Button onClick={downloadPDF} className="aspect-square h-10 w-10 p-0">
102-
<Download />
103-
</Button>
100+
104101
<div className="flex items-center gap-2">
105102
<Button
106103
onClick={goToPreviousPage}
@@ -129,6 +126,7 @@ export default function PdfViewer({ url, name }: PdfViewerProps) {
129126

130127
{/* Zoom Controls */}
131128
<div className="flex items-center gap-2">
129+
{" "}
132130
<Button
133131
onClick={zoomOut}
134132
disabled={scale <= 0.25}
@@ -144,6 +142,10 @@ export default function PdfViewer({ url, name }: PdfViewerProps) {
144142
>
145143
{<ZoomIn />}
146144
</Button>
145+
<ShareButton />
146+
<Button onClick={downloadPDF} className="aspect-square h-10 w-10 p-0">
147+
<Download />
148+
</Button>
147149
</div>
148150
</div>
149151
</div>

0 commit comments

Comments
 (0)