Fix skeleton size
This commit is contained in:
parent
a70b7fe29c
commit
17e8dafee7
1 changed files with 12 additions and 2 deletions
|
@ -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}
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in a new issue