Skip to content

Commit 237eef6

Browse files
authored
Merge pull request #65 from DevCom-IITB/develop
Mobile Redesign for Dashboard -minor fixes Made the dashboard responsive and created new mobile view pages for all sections, improving usability on phones and tablets :D (minor css bug fixes for stats page)
2 parents 913191c + 906906d commit 237eef6

File tree

2 files changed

+17
-12
lines changed

2 files changed

+17
-12
lines changed

src/app/plotly.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export class PlotlyService {
118118
'resetScale'
119119
],
120120
};
121-
Plotly.newPlot(div_identifier,initialTrace, layout,config,{responsive: true});
121+
Plotly.newPlot(div_identifier,initialTrace, layout,config);
122122
Plotly.animate(div_identifier,
123123
{ data: trace },
124124
{

src/app/statistics/statistics.component.css

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -156,21 +156,26 @@ li.text-stats-item {
156156
display: none;
157157
}
158158
.chart-container {
159-
display: flex !important;
160-
justify-content: center !important;
161-
align-items: center !important;
162-
width: 100% !important;
163-
margin: 0 auto !important;
159+
width: 100% !important;
160+
max-width: 100% !important;
164161
overflow-x: auto !important;
165-
box-sizing: border-box;
166-
padding: 0;
167-
max-width: 100vw;
162+
padding: 0 !important;
163+
margin: 0 auto !important;
168164
}
169165

170166
#mess_data .js-plotly-plot,
171-
#student_data .js-plotly-plot {
172-
max-width: 100%;
173-
min-width: 300px;
167+
#student_data .js-plotly-plot,
168+
.chart-container .js-plotly-plot,
169+
.chart-container .plot-container {
170+
width: 100% !important;
171+
max-width: 100% !important;
172+
}
173+
174+
.chart-container svg,
175+
#mess_data svg,
176+
#student_data svg {
177+
width: 100% !important;
178+
max-width: 100% !important;
174179
}
175180
#display-data{
176181
color: #ffffff;

0 commit comments

Comments
 (0)