ui fixed
This commit is contained in:
@@ -238,6 +238,30 @@ export default function DocumentsPage() {
|
|||||||
</Card>
|
</Card>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
{fileBlobUrl && (
|
||||||
|
<Card>
|
||||||
|
<CardHeader className="flex justify-between items-center">
|
||||||
|
<CardTitle>Viewing PDF #{selectedPdfId}</CardTitle>
|
||||||
|
<Button
|
||||||
|
variant="ghost"
|
||||||
|
onClick={() => {
|
||||||
|
setFileBlobUrl(null);
|
||||||
|
setSelectedPdfId(null);
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
Close
|
||||||
|
</Button>
|
||||||
|
</CardHeader>
|
||||||
|
<CardContent>
|
||||||
|
<iframe
|
||||||
|
src={fileBlobUrl}
|
||||||
|
className="w-full h-[80vh] border rounded"
|
||||||
|
title="PDF Viewer"
|
||||||
|
/>
|
||||||
|
</CardContent>
|
||||||
|
</Card>
|
||||||
|
)}
|
||||||
|
|
||||||
<Card>
|
<Card>
|
||||||
<CardHeader>
|
<CardHeader>
|
||||||
<CardTitle>Patient Records</CardTitle>
|
<CardTitle>Patient Records</CardTitle>
|
||||||
@@ -262,30 +286,6 @@ export default function DocumentsPage() {
|
|||||||
onCancel={() => setIsDeletePdfOpen(false)}
|
onCancel={() => setIsDeletePdfOpen(false)}
|
||||||
entityName={`PDF #${currentPdf?.id}`}
|
entityName={`PDF #${currentPdf?.id}`}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{fileBlobUrl && (
|
|
||||||
<Card>
|
|
||||||
<CardHeader className="flex justify-between items-center">
|
|
||||||
<CardTitle>Viewing PDF #{selectedPdfId}</CardTitle>
|
|
||||||
<Button
|
|
||||||
variant="ghost"
|
|
||||||
onClick={() => {
|
|
||||||
setFileBlobUrl(null);
|
|
||||||
setSelectedPdfId(null);
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
Close
|
|
||||||
</Button>
|
|
||||||
</CardHeader>
|
|
||||||
<CardContent>
|
|
||||||
<iframe
|
|
||||||
src={fileBlobUrl}
|
|
||||||
className="w-full h-[80vh] border rounded"
|
|
||||||
title="PDF Viewer"
|
|
||||||
/>
|
|
||||||
</CardContent>
|
|
||||||
</Card>
|
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user