Skip to content

Commit 93b81b5

Browse files
committed
enhance: responsiveness in dashboard views
1 parent ad6e4d2 commit 93b81b5

File tree

22 files changed

+1418
-1072
lines changed

22 files changed

+1418
-1072
lines changed

app/src/components/Chart/UsageProgressLine.vue

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ const fixed_percent = computed(() => {
2323

2424
<template>
2525
<div>
26-
<div>
26+
<div class="flex items-center">
2727
<span class="slot-icon"><slot name="icon" /></span>
2828
<span class="slot">
2929
<slot />
3030
</span>
31-
<span class="dot"> ·</span> {{ `${fixed_percent}%` }}
31+
<span class="dot mx-2">·</span>{{ `${fixed_percent}%` }}
3232
</div>
3333
<AProgress
3434
:percent="fixed_percent"
@@ -41,15 +41,7 @@ const fixed_percent = computed(() => {
4141
<style scoped lang="less">
4242
.slot-icon {
4343
margin-right: 5px;
44-
}
45-
46-
@media (max-width: 1000px) and (min-width: 600px) {
47-
.dot {
48-
display: none;
49-
}
50-
51-
.slot {
52-
display: none;
53-
}
44+
display: flex;
45+
align-items: center;
5446
}
5547
</style>

0 commit comments

Comments
 (0)