Fix/pdf preview in build (#11621)
This commit is contained in:
parent
fa3dcbb3bc
commit
3d803c2e80
4 changed files with 40 additions and 1 deletions
|
|
@ -56,6 +56,7 @@ const PdfPreview: FC<PdfPreviewProps> = ({
|
|||
style={{ transform: `scale(${scale})`, transformOrigin: 'center', scrollbarWidth: 'none', msOverflowStyle: 'none' }}
|
||||
>
|
||||
<PdfLoader
|
||||
workerSrc='/pdf.worker.min.mjs'
|
||||
url={url}
|
||||
beforeLoad={<div className='flex justify-center items-center h-64'><Loading type='app' /></div>}
|
||||
>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue