Adding functional IVANS widget with dialog popup view of summary and pdfs
This commit is contained in:
@@ -203,6 +203,7 @@ function SummaryDialog({ open, onOpenChange, item }) {
|
|||||||
<br />
|
<br />
|
||||||
{item?.files?.map((file, index) => {
|
{item?.files?.map((file, index) => {
|
||||||
return (
|
return (
|
||||||
|
<>
|
||||||
<object data={`${file?.url}#view=FitH&toolbar=1`}
|
<object data={`${file?.url}#view=FitH&toolbar=1`}
|
||||||
type="application/pdf"
|
type="application/pdf"
|
||||||
style={{ width: '100%', height: '100%', display: 'block' }}
|
style={{ width: '100%', height: '100%', display: 'block' }}
|
||||||
@@ -216,6 +217,8 @@ function SummaryDialog({ open, onOpenChange, item }) {
|
|||||||
</a>
|
</a>
|
||||||
</Flex>
|
</Flex>
|
||||||
</object>
|
</object>
|
||||||
|
<br />
|
||||||
|
</>
|
||||||
)})}
|
)})}
|
||||||
</Dialog.Body>
|
</Dialog.Body>
|
||||||
|
|
||||||
|
|||||||
@@ -55,7 +55,6 @@ export const WIDGET_REGISTRY = {
|
|||||||
medium: { w: 3, h: 9 },
|
medium: { w: 3, h: 9 },
|
||||||
large: { w: 3, h: 12 },
|
large: { w: 3, h: 12 },
|
||||||
gargantuan: { w: 6, h: 12 },
|
gargantuan: { w: 6, h: 12 },
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user