frontend hotfix: prevent jumping of table
This commit is contained in:
parent
c0c7da457c
commit
871a4c0852
|
@ -22,13 +22,13 @@ const HostOfferLookupWrapper = (props: HostOfferLookupWrapperProps) => {
|
||||||
alignItems: 'stretch',
|
alignItems: 'stretch',
|
||||||
flexDirection: 'column',
|
flexDirection: 'column',
|
||||||
height: '100%'}}>
|
height: '100%'}}>
|
||||||
<div>
|
<div style={{minHeight: '2em', display: 'flex'}}>
|
||||||
{ (queryResult_ro.isFetching || queryResult_rw.isFetching) && t('loading…') }
|
{ (queryResult_ro.isFetching || queryResult_rw.isFetching) && t('loading…') }
|
||||||
{ (queryResult_ro.error || queryResult_rw.error) && t('An error occurred while trying to get data from the backend.') }
|
{ (queryResult_ro.error || queryResult_rw.error) && t('An error occurred while trying to get data from the backend.') }
|
||||||
{ (queryResult_ro.data && !queryResult_ro.data.get_offers || queryResult_rw.data && !queryResult_rw.data.get_rw)
|
{ (queryResult_ro.data && !queryResult_ro.data.get_offers || queryResult_rw.data && !queryResult_rw.data.get_rw)
|
||||||
&& t('Seems like you have no permissions. Please try to login again.') }
|
&& t('Seems like you have no permissions. Please try to login again.') }
|
||||||
|
<Login/>
|
||||||
</div>
|
</div>
|
||||||
<Login/>
|
|
||||||
{queryResult_ro.data && <div
|
{queryResult_ro.data && <div
|
||||||
style={{flex: '1 1', height: '100%'}}>
|
style={{flex: '1 1', height: '100%'}}>
|
||||||
<HostOfferLookupTable
|
<HostOfferLookupTable
|
||||||
|
|
|
@ -18,8 +18,8 @@ const Home: NextPage = () => {
|
||||||
|
|
||||||
<main className={styles.main}>
|
<main className={styles.main}>
|
||||||
<SplitPane split={"horizontal"}>
|
<SplitPane split={"horizontal"}>
|
||||||
<LeafletMapWithoutSSR />
|
|
||||||
<HostOfferLookupWrapper />
|
<HostOfferLookupWrapper />
|
||||||
|
<LeafletMapWithoutSSR />
|
||||||
</SplitPane>
|
</SplitPane>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue