Commit 6f6e325f authored by tom's avatar tom

fix flickering in blocks page

parent 23502726
...@@ -82,10 +82,10 @@ const BlocksContent = ({ type, query }: Props) => { ...@@ -82,10 +82,10 @@ const BlocksContent = ({ type, query }: Props) => {
if (query.isLoading) { if (query.isLoading) {
return ( return (
<> <>
<Show below="lg" key="skeleton-mobile"> <Show below="lg" key="skeleton-mobile" ssr={ false }>
<BlocksSkeletonMobile/> <BlocksSkeletonMobile/>
</Show> </Show>
<Hide below="lg" key="skeleton-desktop"> <Hide below="lg" key="skeleton-desktop" ssr={ false }>
<SkeletonTable columns={ [ '125px', '120px', '21%', '64px', '35%', '22%', '22%' ] }/> <SkeletonTable columns={ [ '125px', '120px', '21%', '64px', '35%', '22%', '22%' ] }/>
</Hide> </Hide>
</> </>
...@@ -103,8 +103,8 @@ const BlocksContent = ({ type, query }: Props) => { ...@@ -103,8 +103,8 @@ const BlocksContent = ({ type, query }: Props) => {
return ( return (
<> <>
{ socketAlert && <Alert status="warning" mb={ 6 } as="a" href={ window.document.location.href }>{ socketAlert }</Alert> } { socketAlert && <Alert status="warning" mb={ 6 } as="a" href={ window.document.location.href }>{ socketAlert }</Alert> }
<Show below="lg" key="content-mobile"><BlocksList data={ query.data.items }/></Show> <Show below="lg" key="content-mobile" ssr={ false }><BlocksList data={ query.data.items }/></Show>
<Hide below="lg" key="content-desktop"><BlocksTable data={ query.data.items } top={ 80 } page={ 1 }/></Hide> <Hide below="lg" key="content-desktop" ssr={ false }><BlocksTable data={ query.data.items } top={ 80 } page={ 1 }/></Hide>
</> </>
); );
...@@ -115,7 +115,7 @@ const BlocksContent = ({ type, query }: Props) => { ...@@ -115,7 +115,7 @@ const BlocksContent = ({ type, query }: Props) => {
return ( return (
<> <>
{ isMobile && !isPaginatorHidden && ( { isMobile && !isPaginatorHidden && (
<ActionBar> <ActionBar mt={ -6 }>
<Pagination ml="auto" { ...query.pagination }/> <Pagination ml="auto" { ...query.pagination }/>
</ActionBar> </ActionBar>
) } ) }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment