Skip to content

Commit 2e8dbdf

Browse files
authored
Merge pull request #125 from vanoop729/master
This fix's horizontal scroll on open-source page as per issue #124
2 parents f6ae9e1 + 80c8a5f commit 2e8dbdf

3 files changed

Lines changed: 8 additions & 1 deletion

File tree

src/containers/opensourceCharts/OpensourceCharts.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919
display: table-cell;
2020
} */
2121

22+
/* To remove horizontal scroll */
23+
.main-div {
24+
width: 90%;
25+
margin: 0 auto;
26+
}
27+
2228
@media (max-width: 1380px) {
2329
.os-charts-header {
2430
font-size: 35px;

src/containers/opensourceCharts/OpensourceCharts.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class OpensourceCharts extends Component {
88
render() {
99
const theme = this.props.theme;
1010
return (
11-
<div>
11+
<div className="main-div">
1212
<div className="os-charts-header-div">
1313
<Fade bottom duration={2000} distance="20px">
1414
<h1 className="os-charts-header" style={{ color: theme.text }}>

src/index.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ code {
4747
html,
4848
body {
4949
scroll-behavior: smooth;
50+
overflow-x: hidden;
5051
}
5152
body {
5253
margin: 0;

0 commit comments

Comments
 (0)