mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 16:23:06 +10:00
layout
This commit is contained in:
@ -43,33 +43,27 @@ export default function PDFViewer(props) {
|
|||||||
position: "relative",
|
position: "relative",
|
||||||
background: "green",
|
background: "green",
|
||||||
}}
|
}}
|
||||||
|
className="mx-auto w-fit"
|
||||||
>
|
>
|
||||||
<div
|
<Page
|
||||||
style={{
|
className="mt-5"
|
||||||
width: "100%",
|
key={`page_${index + 1}`}
|
||||||
background: "red",
|
pageNumber={index + 1}
|
||||||
}}
|
renderAnnotationLayer={false}
|
||||||
>
|
renderTextLayer={false}
|
||||||
<Page
|
onLoadSuccess={() => setLoading(false)}
|
||||||
className="mt-5"
|
onRenderError={() => setLoading(false)}
|
||||||
key={`page_${index + 1}`}
|
></Page>
|
||||||
pageNumber={index + 1}
|
{props?.fields
|
||||||
renderAnnotationLayer={false}
|
.filter((item) => item.page === index)
|
||||||
renderTextLayer={false}
|
.map((item) => (
|
||||||
onLoadSuccess={() => setLoading(false)}
|
<Field
|
||||||
onRenderError={() => setLoading(false)}
|
key={item.id}
|
||||||
></Page>
|
field={item}
|
||||||
{props?.fields
|
className="absolute"
|
||||||
.filter((item) => item.page === index)
|
onPositionChanged={onPositionChangedHandler}
|
||||||
.map((item) => (
|
></Field>
|
||||||
<Field
|
))}
|
||||||
key={item.id}
|
|
||||||
field={item}
|
|
||||||
className="absolute"
|
|
||||||
onPositionChanged={onPositionChangedHandler}
|
|
||||||
></Field>
|
|
||||||
))}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</Fragment>
|
</Fragment>
|
||||||
))}
|
))}
|
||||||
|
|||||||
Reference in New Issue
Block a user