Skip to content

Commit 6fc094b

Browse files
committed
Redesign of stats by days
1 parent 08d9484 commit 6fc094b

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

src/scripts/common.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ function getArrayTime(summaryTime) {
111111
var mins = Math.floor(totalSeconds / 60);
112112
var seconds = totalSeconds % 60;
113113

114+
days = zeroAppend(days);
114115
hours = zeroAppend(hours);
115116
mins = zeroAppend(mins);
116117
seconds = zeroAppend(seconds);

src/scripts/ui.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,8 @@ class UI {
320320
var label = this.createElement('label', ['day-block', 'lbl-toggle']);
321321
label.setAttribute('for', days[i].date);
322322
var span = this.createElement('span', ['day'], new Date(days[i].date).toLocaleDateString());
323-
var spanTime = this.createElement('span', ['day-time'], convertSummaryTimeToString(days[i].total));
323+
var spanTime = this.createElement('span', ['day-time']);
324+
this.createElementsForTotalTime(days[i].total, TypeListEnum.ByDays, spanTime);
324325

325326
label = this.appendChild(label, [span, spanTime]);
326327
parent = this.appendChild(parent, [check, label]);

src/style/webact.css

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,10 @@ body {
103103
color: rgb(0, 0, 0);
104104
}
105105

106+
.day-time .span-active-time{
107+
color: rgb(0, 0, 0);
108+
}
109+
106110
.margin-left-auto{
107111
margin-left: auto;
108112
}
@@ -216,14 +220,17 @@ p.table-header{
216220
width: 415px;
217221
font-size: 13px;
218222
padding-left:5px;
219-
margin:auto;
223+
margin: 0 0 0 5px;
220224
font-weight: 600;
221225
}
222226

223227
.day-time{
224228
width: 80px;
225-
margin:auto;
229+
margin-left:auto;
230+
margin-right: 10px;
226231
font-weight: 650;
232+
font-size: 13px;
233+
color:#c5c3c3;
227234
}
228235

229236
.header-title-day{
@@ -246,12 +253,6 @@ p.table-header{
246253
cursor: pointer;
247254
}
248255

249-
.lbl-toggle:hover {
250-
font-size: 13px;
251-
font-weight: 650;
252-
color: rgb(27, 27, 27);
253-
}
254-
255256
.lbl-toggle::before {
256257
content: ' ';
257258
display: table;
@@ -260,8 +261,7 @@ p.table-header{
260261
border-bottom: 5px solid transparent;
261262
border-left: 5px solid currentColor;
262263
vertical-align: middle;
263-
margin-right: 3px;
264-
transform: translateY(6px);
264+
transform: translateY(3px);
265265

266266
transition: transform .2s ease-out;
267267
}

0 commit comments

Comments
 (0)