Skip to content

Commit 64826cd

Browse files
authored
Solution of overflow large word done (#853)
1 parent 46f0760 commit 64826cd

File tree

2 files changed

+41
-4
lines changed

2 files changed

+41
-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
@@ -20,7 +20,7 @@
2020
</thead>
2121
<app-loading-bar *ngIf="dataSource.isLoading"></app-loading-bar>
2222
<tbody *ngIf="!dataSource.isLoading">
23-
<tr class="d-flex" *ngFor="let entry of dataSource.data">
23+
<tr class="d-flex col-height" *ngFor="let entry of dataSource.data">
2424
<td class="hidden-col">{{ entry.id }}</td>
2525
<td class="col md-col">{{ entry.owner_email }}</td>
2626
<td class="col sm-col">
@@ -43,8 +43,8 @@
4343
</a>
4444
</ng-container>
4545
</td>
46-
<td class="col lg-col">{{ entry.description }}</td>
47-
<td class="col lg-col">
46+
<td class="col lg-scroll">{{ entry.description }}</td>
47+
<td class="col lg-scroll">
4848
<ng-container *ngIf="entry.technologies.length > 0">
4949
<div *ngFor="let technology of entry.technologies" class="badge bg-secondary text-wrap">
5050
{{ technology }}

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

Lines changed: 38 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,7 +28,39 @@
2328
width: 12em;
2429
overflow: hidden;
2530
white-space: normal;
31+
border: none;
32+
}
33+
34+
@mixin scroll-style {
35+
width: 18em;
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
}
63+
2764
.hidden-col{
2865
display: none;
2966
}

0 commit comments

Comments
 (0)