Skip to content

Commit

Permalink
Highlight total time by days
Browse files Browse the repository at this point in the history
  • Loading branch information
Stigmatoz committed Sep 21, 2024
1 parent 5be1b40 commit 9378252
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
3 changes: 3 additions & 0 deletions src/assets/css/dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@
.dark .expander .header span{
color: #b9b9b9 !important;
}
.dark .expander.total {
background-color: #6f6f6f !important;
}
.dark .header span{
color: rgb(255 255 255);
}
Expand Down
15 changes: 9 additions & 6 deletions src/components/ByDays.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
</div>

<div>
<Expander day="Total" :time="tabsByDays?.summaryTime || 0">
<Expander :day="t('allTime.message')" :time="tabsByDays?.summaryTime || 0" class="total">
<TabItem
v-for="(tab, i) of mergeAllDays(tabsByDays?.days)"
:item="tab"
Expand All @@ -65,11 +65,11 @@
:day="tabDay.day"
:time="tabDay.time"
>
<TabItem
v-for="(tab, i) of tabDay.tabs"
:key="i"
:item="tab"
:summaryTimeForWholeDay="tabDay.time"
<TabItem
v-for="(tab, i) of tabDay.tabs"
:key="i"
:item="tab"
:summaryTimeForWholeDay="tabDay.time"
/>
</Expander>
</div>
Expand Down Expand Up @@ -200,4 +200,7 @@ function mergeAllDays(days: TabListByDays['days'] | undefined): CurrentTabItem[]
.by-days-chart {
height: 240px;
}
.expander.total {
background-color: #e0e4ff;
}
</style>

0 comments on commit 9378252

Please sign in to comment.