Skip to content

Commit

Permalink
Added comment where to fix mobile screen issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ScoutAtlas committed Jun 29, 2021
1 parent acdb325 commit 5185530
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
Binary file modified .vs/slnx.sqlite
Binary file not shown.
4 changes: 2 additions & 2 deletions frontend/src/components/details/MobileTableComponent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import PropTypes from 'prop-types';
*/
class MobileTableComponent extends Component {
state = {
headers: getImpactCategoriesTableHeaders(this.props.modelID),
rows: getImpactCategoriesTableData(this.props.modelID)
headers: getImpactCategoriesTableHeaders(),
rows: getImpactCategoriesTableData()
};
render() {
const idKey = this.props.tableKey;
Expand Down
7 changes: 5 additions & 2 deletions frontend/src/components/details/PieChartComponent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,18 @@ const PieChartComponent = () => {
{
breakpoint: 5600,
options: {
chart: {},
chart: {
heigt: 'auto'
},
legend: {
position: 'bottom'
}
}
}
]
};

//lassName='ChartItems' cause PieChart to overlap: needs to be fixed in charts_tables.css
// works fine if className is taken out
return (
<div className='ChartItems' id='chart'>
<ReactApexChart options={options} series={series} type='donut' />
Expand Down
9 changes: 8 additions & 1 deletion frontend/src/components/details/ScenarioComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ class ScenarioComponent extends Component {
<PieChartComponent />
</Col>
</Row>
<Row />
<Row>
<div className='TableContainer'>
{/* Swaps out the table with a mobile version for screens <= sm
Expand All @@ -72,11 +73,17 @@ class ScenarioComponent extends Component {
mdUp={this.props.loadComparePage ? false : true}
xlUp={this.props.loadComparePage ? true : false}
>
<MobileTableComponent
{/* <MobileTableComponent
productName={this.props.selectedProduct.productName}
modelName={this.props.selectedProduct.modelName}
modelID={this.props.selectedProduct.modelID}
tableKey={this.props.scenarioName}
/> */}
<TableComponent
productName={this.props.selectedProduct.productName}
modelID={this.props.selectedProduct.modelID}
modelName={this.props.selectedProduct.modelName}
tableKey={this.props.scenarioName}
/>
</Hidden>
</div>
Expand Down

0 comments on commit 5185530

Please sign in to comment.