Commit 6a705ffb authored by Matija Obreza's avatar Matija Obreza
Browse files

Fixes for LocationMap display

parent 59a0764c
......@@ -48,7 +48,7 @@ class PropertiesItem1 extends React.Component<IItemProps & WithStyles<'propertie
}
return (
<Grid item xs={ 12 } md={ small ? 3 : 12 } className={ classes.propertiesRow }>
<Grid container spacing={ 24 }>
<Grid container spacing={ 0 }>
<Grid item xs={ small ? 8 : 12 } md={ small ? 10 : 3 } className="font-bold p-halfrem" style={ { fontSize: '1rem', fontFamily: 'Roboto, sans-serif' } }>{ title }</Grid>
<Grid item xs={ small ? 4 : 12 } md={ small ? 2 : 9 } className={ `${classes.propertiesValue} p-halfrem` } style={ { fontSize: '1rem' } }>{ children }</Grid>
</Grid>
......@@ -66,7 +66,7 @@ class Properties1 extends React.Component<IProps & WithStyles<'propertiesContain
public render() {
const { children, classes} = this.props;
return (
<Grid container spacing={ 24 } className={ classes.propertiesContainer }>
<Grid container spacing={ 0 } className={ classes.propertiesContainer }>
{ children }
</Grid>
);
......
......@@ -78,6 +78,8 @@ class BrowsePage extends React.Component<IBrowsePageProps, any> {
|| (doi && accession && accession.doi !== theDoi)
|| (uuid && accession && accession.uuid !== uuid));
const hasLatLon = accession && accession.geo && accession.geo.latitude !== null && accession.geo.longitude !== null;
return (
<PageLayout>
<ScrollToTopOnMount />
......@@ -181,11 +183,7 @@ class BrowsePage extends React.Component<IBrowsePageProps, any> {
))
}
</Properties>
{ accession.geo && accession.geo.latitude !== null && accession.geo.longitude !== null && (
<div className="p-20">
<LocationMap accessionGeo={ accession.geo } classes={ {} }/>
</div>
) }
{ hasLatLon && <LocationMap accessionGeo={ accession.geo } classes={ {} } /> }
</PageSection>
{ accession.remarks && accession.remarks.length > 0 && <PageSection title="Remarks">
......
......@@ -297,7 +297,7 @@ class WelcomePage extends React.Component<any, any> {
<Hidden mdDown>
<Grid item xs={ 12 } md={ 3 }>
<Stats>
<Link to="/accessions">
<Link to="/a/">
<span className={ classes.amount }>3.8M</span>
{ t('stats.Accessions') }
</Link>
......@@ -307,7 +307,7 @@ class WelcomePage extends React.Component<any, any> {
<Hidden mdUp>
<Grid item xs={ 12 } md={ 3 }>
<Stats>
<Link to="/accessions">
<Link to="/a/">
{ t('stats.Browse accessions') }
</Link>
</Stats>
......
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