Enhance the dashboard to make it responsive and corrected the logo at sidenav
Further fix the responsive design
This commit is contained in:
committed by
Jose Alberto Hernandez
parent
d1b2195423
commit
3d6b36bb8f
@@ -13,6 +13,7 @@
|
|||||||
|
|
||||||
.app-brand {
|
.app-brand {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
.card {
|
.card {
|
||||||
width: 27.5rem;
|
min-width: 18.5rem;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
.header {
|
.header {
|
||||||
#office{
|
#office{
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
.card {
|
.card {
|
||||||
width: 27.5rem;
|
min-width: 18.5rem;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
.header {
|
.header {
|
||||||
#office{
|
#office{
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
<mat-card-content>
|
<mat-card-content>
|
||||||
<!-- Structural directives like *ngIf break the canvas -->
|
<!-- Structural directives like *ngIf break the canvas -->
|
||||||
<div [ngStyle]="{'display': (hideOutput) ? 'none' : 'block'}">
|
<div [ngStyle]="{'display': (hideOutput) ? 'none' : 'block'}">
|
||||||
<canvas id="client-trends-bar" width="800" height="465"></canvas>
|
<canvas id="client-trends-bar" width="800" height="465" class="fallback"></canvas>
|
||||||
</div>
|
</div>
|
||||||
<mat-button-toggle-group [formControl]="timescale" id='timescale' appearance="legacy">
|
<mat-button-toggle-group [formControl]="timescale" id='timescale' appearance="legacy">
|
||||||
<mat-button-toggle value="Day">{{"labels.buttons.Day" | translate}}</mat-button-toggle>
|
<mat-button-toggle value="Day">{{"labels.buttons.Day" | translate}}</mat-button-toggle>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
.card {
|
.card {
|
||||||
width: 41.25rem;
|
min-width: 18.5rem;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
.header {
|
.header {
|
||||||
#office{
|
#office{
|
||||||
@@ -9,4 +9,9 @@
|
|||||||
#timescale {
|
#timescale {
|
||||||
margin: 2% 35%;
|
margin: 2% 35%;
|
||||||
}
|
}
|
||||||
|
.fallback {
|
||||||
|
overflow-x: auto;
|
||||||
|
max-width: 100%;
|
||||||
|
min-height: 16.5rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<mat-card class="card" fxLayout="column" fxLayoutGap="40px">
|
<mat-card class="card" fxLayout="column" fxLayoutGap="40px">
|
||||||
|
|
||||||
<div fxLayout="row" fxLayoutGap="40px">
|
<div fxLayout="row" class="top-card">
|
||||||
|
|
||||||
<mat-card class="recent-activities">
|
<mat-card class="recent-activities">
|
||||||
|
|
||||||
@@ -35,15 +35,21 @@
|
|||||||
|
|
||||||
</mat-card>
|
</mat-card>
|
||||||
|
|
||||||
<mifosx-amount-disbursed-pie></mifosx-amount-disbursed-pie>
|
<div class="amount-disbursed">
|
||||||
|
<mifosx-amount-disbursed-pie></mifosx-amount-disbursed-pie>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div fxLayout="row" fxLayoutGap="40px">
|
<div fxLayout="row" class="bottom-card">
|
||||||
|
|
||||||
<mifosx-client-trends-bar></mifosx-client-trends-bar>
|
<div class="trends-bar">
|
||||||
|
<mifosx-client-trends-bar></mifosx-client-trends-bar>
|
||||||
|
</div>
|
||||||
|
|
||||||
<mifosx-amount-collected-pie></mifosx-amount-collected-pie>
|
<div class="amount-collected">
|
||||||
|
<mifosx-amount-collected-pie></mifosx-amount-collected-pie>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,56 @@
|
|||||||
.card {
|
.card {
|
||||||
|
box-sizing: border-box;
|
||||||
padding: 2%;
|
padding: 2%;
|
||||||
.recent-activities, .frequent-activities {
|
display: flex;
|
||||||
width: 20rem;
|
flex-direction: column;
|
||||||
padding: 0;
|
|
||||||
.list {
|
.top-card {
|
||||||
padding-top: 0px;
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
flex-direction: row;
|
||||||
|
gap: 2px;
|
||||||
|
|
||||||
|
.recent-activities,
|
||||||
|
.frequent-activities{
|
||||||
|
min-width: 18.5rem;
|
||||||
|
}
|
||||||
|
.recent-activities,
|
||||||
|
.frequent-activities,
|
||||||
|
.amount-disbursed {
|
||||||
|
flex: 1 0 calc(26.33% - 10px);
|
||||||
|
padding: 0;
|
||||||
|
margin: 10px;
|
||||||
|
|
||||||
|
.list {
|
||||||
|
padding-top: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.bottom-card{
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
flex-direction: row;
|
||||||
|
gap: 2px;
|
||||||
|
|
||||||
|
.trends-bar,
|
||||||
|
.amount-collected {
|
||||||
|
flex: 1 0 calc(40% - 10px);
|
||||||
|
padding: 0;
|
||||||
|
margin: 10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 768px) {
|
||||||
|
.recent-activities,
|
||||||
|
.frequent-activities,
|
||||||
|
.amount-disbursed,
|
||||||
|
.trends-bar,
|
||||||
|
.amount-collected {
|
||||||
|
box-sizing: border-box;
|
||||||
|
width: 100%;
|
||||||
|
flex: 1 0 calc(80% - 10px);
|
||||||
|
margin-bottom: 20px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user