frontend hotfix: prevent jumping of table

This commit is contained in:
Johannes Lötzsch 2022-03-14 16:27:14 +01:00
parent c0c7da457c
commit 871a4c0852
2 changed files with 3 additions and 3 deletions

View File

@ -22,13 +22,13 @@ const HostOfferLookupWrapper = (props: HostOfferLookupWrapperProps) => {
alignItems: 'stretch',
flexDirection: 'column',
height: '100%'}}>
<div>
<div style={{minHeight: '2em', display: 'flex'}}>
{ (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.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.') }
<Login/>
</div>
<Login/>
{queryResult_ro.data && <div
style={{flex: '1 1', height: '100%'}}>
<HostOfferLookupTable

View File

@ -18,8 +18,8 @@ const Home: NextPage = () => {
<main className={styles.main}>
<SplitPane split={"horizontal"}>
<LeafletMapWithoutSSR />
<HostOfferLookupWrapper />
<LeafletMapWithoutSSR />
</SplitPane>
</main>