Skip to content

Commit ba25e0c

Browse files
committed
Refactoring...
1 parent 58b90e2 commit ba25e0c

File tree

2 files changed

+20
-17
lines changed

2 files changed

+20
-17
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
</a>
4545
</ng-container>
4646
</td>
47-
<td class="col lg-col-scroll">{{ entry.description }}</td>
48-
<td class="col lg-col-scroll tech-style">
47+
<td class="col lg-scroll">{{ entry.description }}</td>
48+
<td class="col lg-scroll">
4949
<ng-container *ngIf="entry.technologies.length > 0">
5050
<div *ngFor="let technology of entry.technologies" class="badge bg-secondary text-wrap">
5151
{{ technology }}

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

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
.col-height {
1111
min-height: auto;
12-
max-height: 7rem;
12+
max-height: 8rem;
1313
// height: auto;
1414
}
1515

@@ -34,7 +34,7 @@
3434
border: none;
3535
}
3636

37-
.lg-col-scroll {
37+
@mixin scroll-style {
3838
width: 40em;
3939
overflow: hidden;
4040
white-space: normal;
@@ -43,25 +43,28 @@
4343
margin: 8px 10px 0px 10px;
4444
border: none;
4545
overflow-y: auto;
46+
overflow-wrap: break-word;
47+
&::-webkit-scrollbar {
48+
width: 0.5em;
49+
}
50+
51+
&::-webkit-scrollbar-track {
52+
box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
53+
}
54+
55+
&::-webkit-scrollbar-thumb {
56+
background-color: #7a8486;
57+
outline: 1px solid #7a8486;
58+
border-radius: 0.5em;
59+
}
4660
}
4761

48-
.tech-style{
49-
width: 12em;
62+
.lg-scroll{
63+
@include scroll-style;
5064
}
5165

52-
.lg-col-scroll::-webkit-scrollbar {
53-
width: 0.5em;
54-
}
5566

56-
.lg-col-scroll::-webkit-scrollbar-track {
57-
box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
58-
}
5967

60-
.lg-col-scroll::-webkit-scrollbar-thumb {
61-
background-color: #7a8486;
62-
outline: 1px solid #7a8486;
63-
border-radius: 0.5em;
64-
}
6568

6669
.hidden-col {
6770
display: none;

0 commit comments

Comments
 (0)