Skip to content

Commit d968f2f

Browse files
authored
fix(results): display xml a better way (DEV-96) (#593)
1 parent df09a13 commit d968f2f

4 files changed

Lines changed: 12 additions & 11 deletions

File tree

‎src/app/workspace/results/list-view/resource-grid/resource-grid.component.html‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@
2727
{{ resource.entityInfo.properties[val.property].label }}
2828
</span>
2929

30-
<div class="res-prop-value">
31-
{{ val.strval | appTruncate: 256:"..." }}
32-
</div>
30+
<div class="res-prop-value shorten-long-text" [innerHtml]="val.strval"></div>
3331
</div>
3432
</mat-card-content>
3533
</div>

‎src/app/workspace/results/list-view/resource-list/resource-list.component.html‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@ <h3 matLine class="res-class-value">{{ resource.label }}</h3>
1616
<span class="res-prop-label">
1717
{{ resource.entityInfo.properties[val.property].label }}
1818
</span>
19-
20-
<div class="res-prop-value">
21-
{{ val.strval | appTruncate: 256:"..." }}
22-
</div>
19+
<div class="res-prop-value shorten-long-text" [innerHtml]="val.strval"></div>
2320
</div>
2421
</div>
2522
</div>

‎src/app/workspace/results/list-view/resource-list/resource-list.component.scss‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@
1818
margin: 0 15px;
1919
}
2020

21-
.res-prop-value {
22-
text-align: justify;
23-
}
24-
2521
.res-class-label,
2622
.res-prop-label {
2723
color: rgba(0, 0, 0, 0.54);

‎src/assets/style/_elements.scss‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -670,6 +670,16 @@ $gc-small: $form-width - $gc-large - 4;
670670
.search-results-title {
671671
color: rgba(0, 0, 0, 1) !important;
672672
}
673+
674+
.shorten-long-text {
675+
text-align: justify;
676+
white-space: nowrap;
677+
overflow: hidden;
678+
width: 100%;
679+
max-height: 42px;
680+
text-overflow: ellipsis;
681+
display: block;
682+
}
673683
// --------------------------------------
674684

675685
//

0 commit comments

Comments
 (0)