Skip to content

Commit 4cfca41

Browse files
JaviMiotOlucas7
authored andcommitted
feat: TT-37-show-complete-descriptions-on-hover
1 parent a627255 commit 4cfca41

File tree

2 files changed

+49
-19
lines changed

2 files changed

+49
-19
lines changed

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

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
<div class="row scroll-table mt-5 ml-0">
2-
<table
3-
class="table table-striped mb-0"
4-
datatable
5-
[dtTrigger]="dtTrigger"
6-
[dtOptions]="dtOptions"
2+
<table class="table table-striped mb-0" datatable [dtTrigger]="dtTrigger" [dtOptions]="dtOptions"
73
*ngIf="(reportDataSource$ | async) as dataSource">
84
<thead class="thead-blue">
95
<tr class="d-flex">
@@ -25,7 +21,7 @@
2521
</thead>
2622
<app-loading-bar *ngIf="dataSource.isLoading"></app-loading-bar>
2723
<tbody *ngIf="!dataSource.isLoading">
28-
<tr class="d-flex" *ngFor="let entry of dataSource.data">
24+
<tr class="d-flex col-height" *ngFor="let entry of dataSource.data">
2925
<td class="hidden-col">{{ entry.id }}</td>
3026
<td class="col md-col">{{ entry.owner_email }}</td>
3127
<td class="col sm-col">
@@ -48,15 +44,15 @@
4844
</a>
4945
</ng-container>
5046
</td>
51-
<td class="col lg-col">{{ entry.description }}</td>
47+
<td class="col lg-col-scroll">{{ entry.description }}</td>
5248
<td class="col lg-col">
5349
<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>
50+
<div *ngFor="let technology of entry.technologies" class="badge bg-secondary text-wrap">
51+
{{ technology }}
52+
</div>
5753
</ng-container>
58-
</td>
54+
</td>
5955
</tr>
6056
</tbody>
6157
</table>
62-
</div>
58+
</div>

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

Lines changed: 41 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,64 @@
11
@import '../../../../../styles/colors.scss';
2-
.col{
2+
3+
.col {
34
white-space: nowrap;
45
overflow: hidden;
56
text-overflow: ellipsis;
67
font-size: small;
78
}
8-
.x-sm-col{
9+
10+
.col-height {
11+
min-height: 80px;
12+
max-height: 150px;
13+
}
14+
15+
.x-sm-col {
916
width: 5em;
1017
max-width: 7em;
1118
}
1219

13-
.sm-col{
20+
.sm-col {
1421
width: 6em;
1522
max-width: 8em;
1623
}
1724

18-
.md-col{
25+
.md-col {
1926
width: 9em;
2027
}
2128

22-
.lg-col{
29+
.lg-col {
2330
width: 12em;
2431
overflow: hidden;
2532
white-space: normal;
33+
border: none;
34+
}
35+
36+
.lg-col-scroll {
37+
width: 40em;
38+
overflow: hidden;
39+
white-space: normal;
40+
display: -webkit-box;
41+
-webkit-box-orient: vertical;
42+
margin: 8px 10px 0px 10px;
43+
border: none;
44+
overflow-y: auto;
2645
}
27-
.hidden-col{
46+
47+
.lg-col-scroll::-webkit-scrollbar {
48+
width: 0.5em;
49+
}
50+
51+
.lg-col-scroll::-webkit-scrollbar-track {
52+
box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
53+
}
54+
55+
.lg-col-scroll::-webkit-scrollbar-thumb {
56+
background-color: #7a8486;
57+
outline: 1px solid #7a8486;
58+
border-radius: 0.5em;
59+
}
60+
61+
.hidden-col {
2862
display: none;
2963
}
3064

@@ -94,4 +128,4 @@ table.dataTable thead .sorting_desc {
94128
text-transform: capitalize;
95129
font-style: italic;
96130
cursor: pointer;
97-
}
131+
}

0 commit comments

Comments
 (0)