Some chart shuffles
This commit is contained in:
@@ -92,6 +92,18 @@
|
||||
@case ('reading-habits') {
|
||||
<app-reading-habits-chart></app-reading-habits-chart>
|
||||
}
|
||||
@case ('reading-heatmap') {
|
||||
<app-reading-heatmap-chart></app-reading-heatmap-chart>
|
||||
}
|
||||
@case ('personal-rating') {
|
||||
<app-personal-rating-chart></app-personal-rating-chart>
|
||||
}
|
||||
@case ('reading-progress') {
|
||||
<app-reading-progress-chart></app-reading-progress-chart>
|
||||
}
|
||||
@case ('read-status') {
|
||||
<app-read-status-chart></app-read-status-chart>
|
||||
}
|
||||
}
|
||||
</div>
|
||||
}
|
||||
|
||||
@@ -274,6 +274,61 @@
|
||||
transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
|
||||
}
|
||||
|
||||
@media (max-width: 1440px) {
|
||||
.charts-container {
|
||||
grid-template-columns: repeat(12, 1fr);
|
||||
}
|
||||
|
||||
.chart-card {
|
||||
&.chart-small-square {
|
||||
grid-column: span 4;
|
||||
}
|
||||
|
||||
&.chart-small {
|
||||
grid-column: span 4;
|
||||
}
|
||||
|
||||
&.chart-medium {
|
||||
grid-column: span 6;
|
||||
}
|
||||
|
||||
&.chart-large {
|
||||
grid-column: span 8;
|
||||
}
|
||||
|
||||
&.chart-wide {
|
||||
grid-column: span 12;
|
||||
}
|
||||
|
||||
&.chart-full {
|
||||
grid-column: span 12;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 1024px) {
|
||||
.charts-container {
|
||||
grid-template-columns: repeat(6, 1fr);
|
||||
}
|
||||
|
||||
.chart-card {
|
||||
&.chart-small-square,
|
||||
&.chart-small {
|
||||
grid-column: span 3;
|
||||
}
|
||||
|
||||
&.chart-medium {
|
||||
grid-column: span 3;
|
||||
}
|
||||
|
||||
&.chart-large,
|
||||
&.chart-wide,
|
||||
&.chart-full {
|
||||
grid-column: span 6;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.user-stats-container {
|
||||
padding: 1rem;
|
||||
@@ -355,7 +410,7 @@
|
||||
}
|
||||
|
||||
.charts-container {
|
||||
grid-template-columns: repeat(6, 1fr);
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
@@ -367,12 +422,18 @@
|
||||
}
|
||||
|
||||
&.chart-small-square,
|
||||
&.chart-small,
|
||||
&.chart-medium,
|
||||
&.chart-small {
|
||||
grid-column: span 1;
|
||||
}
|
||||
|
||||
&.chart-medium {
|
||||
grid-column: span 1;
|
||||
}
|
||||
|
||||
&.chart-large,
|
||||
&.chart-wide,
|
||||
&.chart-full {
|
||||
grid-column: span 6;
|
||||
grid-column: span 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,6 +15,10 @@ import {PeakHoursChartComponent} from '../peak-hours-chart/peak-hours-chart.comp
|
||||
import {ReadingDNAChartComponent} from '../reading-dna-chart/reading-dna-chart.component';
|
||||
import {ReadingHabitsChartComponent} from '../reading-habits-chart/reading-habits-chart.component';
|
||||
import {UserChartConfig, UserChartConfigService} from '../../service/user-chart-config.service';
|
||||
import {ReadingHeatmapChartComponent} from '../reading-heatmap-chart/reading-heatmap-chart.component';
|
||||
import {PersonalRatingChartComponent} from '../personal-rating-chart/personal-rating-chart.component';
|
||||
import {ReadingProgressChartComponent} from '../reading-progress-chart/reading-progress-chart.component';
|
||||
import {ReadStatusChartComponent} from '../read-status-chart/read-status-chart.component';
|
||||
|
||||
@Component({
|
||||
selector: 'app-user-stats',
|
||||
@@ -31,7 +35,11 @@ import {UserChartConfig, UserChartConfigService} from '../../service/user-chart-
|
||||
FavoriteDaysChartComponent,
|
||||
PeakHoursChartComponent,
|
||||
ReadingDNAChartComponent,
|
||||
ReadingHabitsChartComponent
|
||||
ReadingHabitsChartComponent,
|
||||
ReadingHeatmapChartComponent,
|
||||
PersonalRatingChartComponent,
|
||||
ReadingProgressChartComponent,
|
||||
ReadStatusChartComponent
|
||||
],
|
||||
templateUrl: './user-stats.component.html',
|
||||
styleUrls: ['./user-stats.component.scss']
|
||||
|
||||
Reference in New Issue
Block a user