Skip to content

Commit

Permalink
Styling Adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
zain55337 committed Sep 6, 2023
1 parent d596ecb commit fda235c
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 6 deletions.
14 changes: 10 additions & 4 deletions src/javascript/components/CVGPlot.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,15 @@ let styleWidth = 700;
let styleHeight = 700;
const windowWidth = window.innerWidth;

if (windowWidth < 500) {
styleWidth = windowWidth;
styleHeight = windowWidth;
if (windowWidth <= 996 && windowWidth > 776) {
styleWidth = 500;
styleHeight = 500;
} else if (windowWidth <= 776 && windowWidth > 500) {
styleWidth = 300;
styleHeight = 300;
} else if (windowWidth <= 500) {
styleWidth = 200;
styleHeight = 200;
}

const downloadChart = (downloadType) => {
Expand Down Expand Up @@ -295,7 +301,7 @@ const CVGPlot = ({ measurementLabels, refHAB }) => {
pageRangeDisplayed={10}
onChange={handlePageChange}
/>
<div id="colorVectorGraphics" className="col-md-8 md-offset-2 col-xs-12">
<div id="colorVectorGraphics">
<Plot
data={data}
style={{ width: styleWidth, height: styleHeight }}
Expand Down
2 changes: 1 addition & 1 deletion src/javascript/components/Upload.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const Upload = () => {
</section>
<LoadingIndicator />
<section className="why-us pt-2 upload-section">
<div className="container p-5 text-center">
<div className="container p-4 text-center upload-div">
<div className="row justify-content-center">
<UploadForm
radianceOrIrradiance={radianceOrIrradiance}
Expand Down
21 changes: 20 additions & 1 deletion src/stylesheets/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -333,10 +333,29 @@
.modal-lg {
--bs-modal-width: 70%;
}
@media screen and (max-width: 776px) {
@media screen and (max-width: 996px) {
.upload-div, .container {
max-width: 95% !important;
}
.table-row {
margin-left: 0px !important;
margin-right: 0px !important;
overflow-x: scroll !important;
}
}
@media screen and (max-width: 768px){
.modal-lg {
--bs-modal-width: 100%;
}
.upload-div, .container {
padding: 20px !important;
max-width: 95% !important;
}
.table-row {
margin-left: 0px !important;
margin-right: 0px !important;
overflow-x: scroll !important;
}
}
@media screen and (max-width: 576px) {
#app {
Expand Down

0 comments on commit fda235c

Please sign in to comment.