mobile friendliness
This commit is contained in:
@@ -51,6 +51,8 @@
|
||||
padding: 1.5rem;
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
||||
border: 1px solid #e0e0e0;
|
||||
position: relative;
|
||||
min-height: 350px;
|
||||
}
|
||||
|
||||
.chart-container h3 {
|
||||
@@ -61,25 +63,83 @@
|
||||
|
||||
.chart-container canvas {
|
||||
height: 300px !important;
|
||||
max-width: 100%;
|
||||
width: 100% !important;
|
||||
touch-action: pan-y; /* Allow vertical scrolling on mobile */
|
||||
}
|
||||
|
||||
/* Responsive design */
|
||||
@media (max-width: 768px) {
|
||||
.dashboard-container {
|
||||
gap: 1.5rem;
|
||||
}
|
||||
|
||||
.dashboard-cards {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.dashboard-charts {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 1.5rem;
|
||||
}
|
||||
|
||||
.dashboard-card {
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
.card-value {
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
.chart-container {
|
||||
padding: 1rem;
|
||||
min-height: 300px;
|
||||
}
|
||||
|
||||
.chart-container canvas {
|
||||
height: 250px !important;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.dashboard-container {
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.dashboard-cards {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.dashboard-card {
|
||||
padding: 0.75rem;
|
||||
}
|
||||
|
||||
.dashboard-card h3 {
|
||||
font-size: 0.875rem;
|
||||
margin-bottom: 0.75rem;
|
||||
}
|
||||
|
||||
.card-value {
|
||||
font-size: 1.75rem;
|
||||
}
|
||||
|
||||
.card-subtitle {
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
|
||||
.chart-container {
|
||||
padding: 0.75rem;
|
||||
min-height: 250px;
|
||||
}
|
||||
|
||||
.chart-container h3 {
|
||||
font-size: 1rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.chart-container canvas {
|
||||
height: 200px !important;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user