Skip to content

Commit

Permalink
feat(analytics): enhance mobile layout
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Dec 18, 2023
1 parent 132853f commit d4d442f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
9 changes: 8 additions & 1 deletion plugins/analytics/client/home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,19 @@ import NumberGrid from './numbers/index.vue'
}
}
@media (max-width: 768px) {
@media (max-width: 768px) and (min-width: 480px) {
.echarts {
width: 600px;
height: 400px;
}
}
@media (max-width: 480px) {
.echarts {
width: 100%;
height: 300px;
}
}
}
}
Expand Down
10 changes: 10 additions & 0 deletions plugins/analytics/client/numbers/numeric.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ defineProps<{
.value {
font-size: 1rem;
}
@media (max-width: 768px) {
margin: 0.5rem 0;
padding: 0 1rem;
}
}
.k-analytic-number footer {
Expand All @@ -66,6 +71,11 @@ defineProps<{
margin-bottom: 0.75rem;
display: flex;
justify-content: space-between;
@media (max-width: 768px) {
margin: 0.5rem 0;
padding: 0.5rem 1rem 0;
}
}
</style>

0 comments on commit d4d442f

Please sign in to comment.