Fix skeleton size

This commit is contained in:
Leonardo Murça 2022-06-29 16:24:25 -03:00
parent a70b7fe29c
commit 17e8dafee7

View file

@ -12,10 +12,20 @@ function Calendar() {
if (layoutType === 'desktop') { if (layoutType === 'desktop') {
return ( return (
<Stack spacing={2} alignItems="center" sx={{ paddingTop: '40px' }}> <Stack
spacing={2}
alignItems="center"
sx={{ paddingTop: '40px', paddingBottom: '60px' }}
>
<Document <Document
error={<p>Falha ao carregar o arquivo.</p>} error={<p>Falha ao carregar o arquivo.</p>}
loading={<Skeleton variant="rectangular" width={900} height={1250} />} loading={
<Skeleton
variant="rectangular"
width={innerWidth * 0.35}
height={innerHeight * 0.9}
/>
}
options={{ workerSrc: '/pdf.worker.js' }} options={{ workerSrc: '/pdf.worker.js' }}
file={calendarPdf} file={calendarPdf}
> >