Skip to content

Commit

Permalink
Merge pull request #521 from KPMP/KPMP-5224_fix_dashboard_alignment
Browse files Browse the repository at this point in the history
KPMP-5224: adjusted homepage containers to align their edges
  • Loading branch information
rlreamy committed Apr 25, 2024
2 parents 85935ca + 273cabe commit 2748366
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 2 additions & 0 deletions src/components/Home/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ class Home extends Component {
<Col md='12' lg='12'>
<TopContent/>
</Col>
</Row>
<Row>
<Col md='12' lg='4'>
<LeftContent />
</Col>
Expand Down
6 changes: 3 additions & 3 deletions src/components/Home/LeftContent.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { Component } from 'react';
import { Container, Row, Button } from 'reactstrap';
import { Container, Button } from 'reactstrap';
import { handleGoogleAnalyticsEvent } from '../../helpers/googleAnalyticsHelper';

class LeftContent extends Component {
Expand All @@ -13,7 +13,7 @@ class LeftContent extends Component {
}
render() {
return (
<Row>
<div style={{marginRight: '15px'}}>
<Container className="mt-3 rounded border p-3 shadow-sm">
<h5>Explorer</h5>
<div>
Expand Down Expand Up @@ -60,7 +60,7 @@ class LeftContent extends Component {
<Button className="w-100" color='primary' href='https://www.kpmp.org/collaboration' size='lg' block onClick={() => { this.handleGoogleAnalyticsEvent('Atlas Home', 'Navigation', 'collaborate') }}>Collaborate with us</Button>
</div>
</Container>
</Row>
</div>
);
}
}
Expand Down
5 changes: 2 additions & 3 deletions src/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -457,9 +457,8 @@ tr.MuiTableRow-root:nth-child(even) {

#homepage {
@media (min-width: 990px) {
.container-expanded {
max-width: 98.75%;
margin-left: 15px;
.container {
max-width: 100%;
}
}
@media (max-width: 635px) {
Expand Down

0 comments on commit 2748366

Please sign in to comment.