Skip to content

Commit

Permalink
Merge pull request #510 from KPMP/KPMP-5233_ResizePlots
Browse files Browse the repository at this point in the history
Kpmp 5233 resize plots
  • Loading branch information
Dert1129 authored Mar 22, 2024
2 parents 76629ee + 6696c50 commit 8bfaea7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/components/Plots/FeaturePlot.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ class FeaturePlot extends Component {
}
getPlotSize() {
if (window.innerWidth > 1197) {
return { plotHeight: 400, plotWidth: 460 };
return { plotHeight: 500, plotWidth: 530 };
} else if (window.innerWidth > 991 && window.innerWidth <= 1197) {
return { plotHeight: 350, plotWidth: 410 }
} else if (window.innerWidth > 767 && window.innerWidth <= 991) {
return { plotHeight: 600, plotWidth: 660 }
} else if (window.innerWidth > 508 && window.innerWidth <= 767) {
return { plotHeight: 400, plotWidth: 460 }
return { plotHeight: 400, plotWidth: 430 }
} else if (window.innerWidth > 408 && window.innerWidth <= 508) {
return { plotHeight: 300, plotWidth: 360 }
} else if (window.innerWidth > 0 && window.innerWidth <= 408) {
Expand Down
8 changes: 4 additions & 4 deletions src/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,8 @@ tr.MuiTableRow-root:nth-child(even) {

}
#umapPlot {
width: 430px;
height: 400px;
width: 538px;
height: 500px;
@media (max-width: 1198px) {
width: 380px;
height: 350px;
Expand All @@ -368,10 +368,10 @@ tr.MuiTableRow-root:nth-child(even) {
height: 600px;
}
@media (max-width: 768px) {
width: 430px;
width: 438px;
height: 400px;
}
@media (max-width: 768px) {
@media (max-width: 508px) {
width: 330px;
height: 300px;
}
Expand Down

0 comments on commit 8bfaea7

Please sign in to comment.