File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 {
Original file line number Diff line number Diff 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 ` ;
You can’t perform that action at this time.
0 commit comments