Skip to content

Commit edec433

Browse files
committed
Small changes dasboard UI
1 parent ae8a9b1 commit edec433

File tree

3 files changed

+18
-9
lines changed

3 files changed

+18
-9
lines changed

src/assets/icons/by-hours.svg

Lines changed: 4 additions & 0 deletions
Loading

src/assets/icons/by-intervals.svg

Lines changed: 2 additions & 0 deletions
Loading

src/components/Dashboad.vue

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,20 @@
44
</div>
55
<div class="chart chartByHours">
66
<div class="mt-10 mb-20">
7-
<input
8-
type="button"
7+
<button
98
:class="['chart-btn', chart == TypeOfChart.Horly ? 'active' : '']"
10-
:value="t('byHours.message')"
119
@click="openChart(TypeOfChart.Horly)"
12-
/>
13-
<input
14-
type="button"
10+
>
11+
<img class="ml-5" src="../assets/icons/by-hours.svg" height="22" />
12+
{{ t('byHours.message') }}
13+
</button>
14+
<button
1515
:class="['ml-10', 'chart-btn', chart == TypeOfChart.Interval ? 'active' : '']"
16-
:value="t('intervals.message')"
1716
@click="openChart(TypeOfChart.Interval)"
18-
/>
17+
>
18+
<img class="ml-5" src="../assets/icons/by-intervals.svg" height="22" />
19+
{{ t('intervals.message') }}
20+
</button>
1921
</div>
2022
<HourlyChart v-if="chart == TypeOfChart.Horly" />
2123
<TimeIntervalChart v-if="chart == TypeOfChart.Interval" />
@@ -73,6 +75,7 @@ function openChart(type: TypeOfChart) {
7375
}
7476
7577
.chart-btn.active {
76-
background-color: #428bff;
78+
background-color: #428bff !important;
79+
color: white;
7780
}
7881
</style>

0 commit comments

Comments
 (0)