Skip to content

Commit dc9ce12

Browse files
committed
Fix ui
1 parent d463294 commit dc9ce12

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

src/scripts/chart/chart-core.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function donutChart() {
2828
// radius will dictate the thickness of the donut
2929
var arc = d3.arc()
3030
.outerRadius(radius * 0.9)
31-
.innerRadius(radius * 0.6)
31+
.innerRadius(radius * 0.8)
3232
.cornerRadius(cornerRadius)
3333
.padAngle(padAngle);
3434

@@ -144,7 +144,7 @@ function donutChart() {
144144

145145
svg.append('circle')
146146
.attr('class', 'toolCircle')
147-
.attr('r', radius * 0.55) // radius of tooltip circle
147+
.attr('r', radius * 0.75) // radius of tooltip circle
148148
.style('fill', colour(data.data[category])) // colour based on category mouse is over
149149
.style('fill-opacity', 0.35);
150150

src/scripts/ui.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ class UI {
347347
var label = this.createElement('label', ['day-block', 'lbl-toggle']);
348348
label.setAttribute('for', days[i].date);
349349
var span = this.createElement('span', ['day'], new Date(days[i].date).toLocaleDateString());
350-
var spanTime = this.createElement('span', ['day-time']);
350+
var spanTime = this.createElement('span', ['span-time']);
351351
this.createElementsForTotalTime(days[i].total, TypeListEnum.ByDays, spanTime);
352352

353353
label = this.appendChild(label, [span, spanTime]);

src/style/webact.css

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ p.table-header {
203203
.day-block {
204204
display: inline-flex;
205205
width: 100%;
206-
height: 25px;
206+
height: 20px;
207207
cursor: pointer;
208208
border-bottom: 1px solid rgb(223, 221, 221);
209209
}
@@ -239,19 +239,17 @@ input[type='checkbox'] {
239239
}
240240

241241
.lbl-toggle {
242-
font-family: monospace;
243242
font-size: 12px;
244243
cursor: pointer;
245244
}
246245

247246
.lbl-toggle::before {
248247
content: ' ';
249248
display: table;
250-
border-top: 5px solid transparent;
251-
border-bottom: 5px solid transparent;
252-
border-left: 5px solid currentColor;
249+
border-top: 10px solid transparent;
250+
border-bottom: 10px solid transparent;
251+
border-left: 8px solid currentColor;
253252
vertical-align: middle;
254-
transform: translateY(3px);
255253
transition: transform .2s ease-out;
256254
}
257255

0 commit comments

Comments
 (0)