Skip to content

Commit c954441

Browse files
committed
update styling
1 parent 11a1d2d commit c954441

2 files changed

Lines changed: 19 additions & 7 deletions

File tree

src/css/popup.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,16 @@
99
#time-entries {
1010
max-height: 15em;
1111
overflow-y: auto;
12+
13+
.list-group-item {
14+
display: flex;
15+
justify-content: space-between;
16+
align-items: center;
17+
18+
&.list-group-item-primary {
19+
background-color: #deeeff;
20+
}
21+
}
1222
}
1323

1424
#time-entries button {

src/js/popup/render_helper.js

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,15 @@ const renderTimeEntries = timeEntries => {
1818
timeEntriesHTML +=
1919
`
2020
<li class="list-group-item ${isOngoing ? 'list-group-item-primary' : ''}">
21-
${
22-
isOngoing ?
23-
`<span class="start">${startTime.format("h:mm a")}</span>`
24-
:
25-
`${duration.asHours().toFixed(2)} h`
26-
}
27-
@ <b><span class="project">${entry.projectName}</span></b>
21+
<div class="time-entry-text">
22+
${
23+
isOngoing ?
24+
`<span class="start">${startTime.format("h:mm a")}</span>`
25+
:
26+
`${duration.asHours().toFixed(2)} h`
27+
}
28+
@ <b><span class="project">${entry.projectName}</span></b>
29+
</div>
2830
${ isOngoing ? `<button class="btn btn-outline-secondary btn-sm activity-stop-button" name="${entry.id}">Stop</button>` : "" }
2931
</li>
3032
`;

0 commit comments

Comments
 (0)