Skip to content

Commit a58b78a

Browse files
committed
fix: TT-593 refactor
1 parent 7e0c9db commit a58b78a

File tree

2 files changed

+40
-4
lines changed

2 files changed

+40
-4
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
</thead>
2727
<app-loading-bar *ngIf="dataSource.isLoading"></app-loading-bar>
2828
<tbody *ngIf="!dataSource.isLoading">
29-
<tr class="d-flex" *ngFor="let entry of dataSource.data">
29+
<tr class="d-flex col-height" *ngFor="let entry of dataSource.data">
3030
<td class="hidden-col">{{ entry.id }}</td>
3131
<td class="col md-col">{{ entry.owner_email }}</td>
3232
<td class="col sm-col">
@@ -49,8 +49,8 @@
4949
</a>
5050
</ng-container>
5151
</td>
52-
<td class="col lg-col">{{ entry.description }}</td>
53-
<td class="col lg-col">
52+
<td class="col lg-scroll">{{ entry.description }}</td>
53+
<td class="col lg-scroll">
5454
<ng-container *ngIf="entry.technologies.length > 0">
5555
<div *ngFor="let technology of entry.technologies" class="badge bg-secondary text-wrap">
5656
{{ technology }}

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

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,14 @@
22
.col{
33
white-space: nowrap;
44
overflow: hidden;
5-
text-overflow: ellipsis;
65
font-size: small;
76
}
7+
8+
.col-height {
9+
min-height: auto;
10+
max-height: 8rem;
11+
}
12+
813
.x-sm-col{
914
width: 5em;
1015
max-width: 7em;
@@ -23,6 +28,37 @@
2328
width: 12em;
2429
overflow: hidden;
2530
white-space: normal;
31+
border: none;
32+
}
33+
34+
@mixin scroll-style {
35+
width: 40em;
36+
overflow: hidden;
37+
white-space: normal;
38+
display: -webkit-box;
39+
-webkit-box-orient: vertical;
40+
margin: 8px 10px 0px 10px;
41+
border: none;
42+
overflow-y: auto;
43+
overflow-wrap: break-word;
44+
45+
&::-webkit-scrollbar {
46+
width: 0.5em;
47+
}
48+
49+
&::-webkit-scrollbar-track {
50+
box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
51+
}
52+
53+
&::-webkit-scrollbar-thumb {
54+
background-color: #7a8486;
55+
outline: 1px solid #7a8486;
56+
border-radius: 0.5em;
57+
}
58+
}
59+
60+
.lg-scroll {
61+
@include scroll-style;
2662
}
2763
.hidden-col{
2864
display: none;

0 commit comments

Comments
 (0)