Skip to content

Commit

Permalink
Merge pull request #387 from LiskHQ/377-fix-price-chart-in-safari
Browse files Browse the repository at this point in the history
Fix price chart in iOS safari - Closes #377
  • Loading branch information
slaweet authored Feb 16, 2018
2 parents 459988c + 4489929 commit 5efb4da
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
18 changes: 17 additions & 1 deletion src/components/dashboard/currencyGraph.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

.wrapper {
height: 100%;
min-height: 200px;
position: relative;

& h2 {
Expand All @@ -11,6 +12,7 @@

.chartWrapper {
height: calc(100% - 70px);
min-height: 130px;
width: calc(100% + 50px);
margin: 0 -25px;
position: absolute;
Expand All @@ -19,7 +21,7 @@
}

.errorMessage {
margin-top: 70px;
margin-top: 60px;
}

.stepSwitchWrapper {
Expand All @@ -42,6 +44,20 @@
}
}

@media (--medium-viewport) {
.wrapper {
min-height: 300px;
}

.chartWrapper {
min-height: 230px;
}

.errorMessage {
margin-top: 30px;
}
}

@media (--small-viewport) {
.stepSwitchWrapper {
margin: 45px 0;
Expand Down
5 changes: 4 additions & 1 deletion src/components/dashboard/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

.graph {
height: calc(60% - 20px);
min-height: 200px;
margin-bottom: 20px;
overflow: hidden;
}
Expand All @@ -37,14 +38,16 @@
.wrapper {
& .colHack {
padding: 0;
max-width: 100%;
flex-basis: 100%;
}

margin: 0;
}

.graph {
height: 60%;
min-height: auto;
min-height: 300px;
margin-bottom: 0;
}

Expand Down

0 comments on commit 5efb4da

Please sign in to comment.