Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat: TT-37-show-complete-descriptions-on-hover
  • Loading branch information
JaviMiot authored and Olucas7 committed Apr 19, 2022
commit 4cfca4125d724ace091482565b017e7655306205
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
<div class="row scroll-table mt-5 ml-0">
<table
class="table table-striped mb-0"
datatable
[dtTrigger]="dtTrigger"
[dtOptions]="dtOptions"
<table class="table table-striped mb-0" datatable [dtTrigger]="dtTrigger" [dtOptions]="dtOptions"
*ngIf="(reportDataSource$ | async) as dataSource">
<thead class="thead-blue">
<tr class="d-flex">
Expand All @@ -25,7 +21,7 @@
</thead>
<app-loading-bar *ngIf="dataSource.isLoading"></app-loading-bar>
<tbody *ngIf="!dataSource.isLoading">
<tr class="d-flex" *ngFor="let entry of dataSource.data">
<tr class="d-flex col-height" *ngFor="let entry of dataSource.data">
<td class="hidden-col">{{ entry.id }}</td>
<td class="col md-col">{{ entry.owner_email }}</td>
<td class="col sm-col">
Expand All @@ -48,15 +44,15 @@
</a>
</ng-container>
</td>
<td class="col lg-col">{{ entry.description }}</td>
<td class="col lg-col-scroll">{{ entry.description }}</td>
<td class="col lg-col">
<ng-container *ngIf="entry.technologies.length > 0">
<div *ngFor="let technology of entry.technologies" class="badge bg-secondary text-wrap">
{{ technology }}
</div>
<div *ngFor="let technology of entry.technologies" class="badge bg-secondary text-wrap">
{{ technology }}
</div>
</ng-container>
</td>
</td>
</tr>
</tbody>
</table>
</div>
</div>
Original file line number Diff line number Diff line change
@@ -1,30 +1,64 @@
@import '../../../../../styles/colors.scss';
.col{

.col {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-size: small;
}
.x-sm-col{

.col-height {
min-height: 80px;
max-height: 150px;
}

.x-sm-col {
width: 5em;
max-width: 7em;
}

.sm-col{
.sm-col {
width: 6em;
max-width: 8em;
}

.md-col{
.md-col {
width: 9em;
}

.lg-col{
.lg-col {
width: 12em;
overflow: hidden;
white-space: normal;
border: none;
}

.lg-col-scroll {
width: 40em;
overflow: hidden;
white-space: normal;
display: -webkit-box;
-webkit-box-orient: vertical;
margin: 8px 10px 0px 10px;
border: none;
overflow-y: auto;
}
.hidden-col{

.lg-col-scroll::-webkit-scrollbar {
width: 0.5em;
}

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

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

.hidden-col {
display: none;
}

Expand Down Expand Up @@ -94,4 +128,4 @@ table.dataTable thead .sorting_desc {
text-transform: capitalize;
font-style: italic;
cursor: pointer;
}
}