Merge branch '20260730_0920_UpdatingIvansWidgetUI' into '20260721_0845_Venessa_addingWidgets'
Adding functional IVANS widget with dialog popup view of summary and pdfs See merge request vkuchenik/website-framework!102
This commit is contained in:
@@ -203,19 +203,22 @@ function SummaryDialog({ open, onOpenChange, item }) {
|
||||
<br />
|
||||
{item?.files?.map((file, index) => {
|
||||
return (
|
||||
<object data={`${file?.url}#view=FitH&toolbar=1`}
|
||||
type="application/pdf"
|
||||
style={{ width: '100%', height: '100%', display: 'block' }}
|
||||
>
|
||||
<Flex w="100%" h="100%" color="gray.400" p={4}>
|
||||
<Text mb={2} color="fg.muted">
|
||||
Your browser cannot display this PDF directly.
|
||||
</Text>
|
||||
<a href={file?.url} target="_blank">
|
||||
Download PDF
|
||||
</a>
|
||||
</Flex>
|
||||
</object>
|
||||
<>
|
||||
<object data={`${file?.url}#view=FitH&toolbar=1`}
|
||||
type="application/pdf"
|
||||
style={{ width: '100%', height: '100%', display: 'block' }}
|
||||
>
|
||||
<Flex w="100%" h="100%" color="gray.400" p={4}>
|
||||
<Text mb={2} color="fg.muted">
|
||||
Your browser cannot display this PDF directly.
|
||||
</Text>
|
||||
<a href={file?.url} target="_blank">
|
||||
Download PDF
|
||||
</a>
|
||||
</Flex>
|
||||
</object>
|
||||
<br />
|
||||
</>
|
||||
)})}
|
||||
</Dialog.Body>
|
||||
|
||||
|
||||
@@ -55,7 +55,6 @@ export const WIDGET_REGISTRY = {
|
||||
medium: { w: 3, h: 9 },
|
||||
large: { w: 3, h: 12 },
|
||||
gargantuan: { w: 6, h: 12 },
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user