Skip to content

Commit 1a66490

Browse files
authored
Tt 588 improve technologies data report presentation (#834)
* Adding css rules for Technology Area presentation in report section. * Refactoring the css rules * corrections by the reviewer.
1 parent 75e909a commit 1a66490

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

src/app/modules/reports/components/time-entries-table/time-entries-table.component.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,13 @@
4949
</ng-container>
5050
</td>
5151
<td class="col lg-col">{{ entry.description }}</td>
52-
<td class="col lg-col">{{ entry.technologies }}</td>
52+
<td class="col lg-col">
53+
<ng-container *ngIf="entry.technologies.length > 0">
54+
<div *ngFor="let technology of entry.technologies" class="badge bg-secondary text-wrap">
55+
{{ technology }}
56+
</div>
57+
</ng-container>
58+
</td>
5359
</tr>
5460
</tbody>
5561
</table>

src/app/modules/reports/components/time-entries-table/time-entries-table.component.scss

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,15 @@ table.dataTable thead .sorting_asc,
8383
table.dataTable thead .sorting_desc {
8484
background-image: none;
8585
}
86+
87+
.badge {
88+
display: flex;
89+
flex-direction: column;
90+
justify-content: space-between;
91+
margin: 0.5em;
92+
color: #FFFFFF;
93+
font-weight: bold;
94+
text-transform: capitalize;
95+
font-style: italic;
96+
cursor: pointer;
97+
}

0 commit comments

Comments
 (0)