Skip to content

Commit 17ebffb

Browse files
[DSC-2481] revert change, change from div to span as on community
1 parent 5583077 commit 17ebffb

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/app/shared/object-list/search-result-list-element/item-search-result/item-types/item/item-search-result-list-element.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
</span>
5454
<div *ngIf="dso.firstMetadataValue('dc.description.abstract')" class="item-list-abstract">
5555
<ds-truncatable-part [id]="dso.id" [minLines]="3">
56-
<div [innerHTML]="firstMetadataValue('dc.description.abstract')"></div>
56+
<span [innerHTML]="firstMetadataValue('dc.description.abstract')"></span>
5757
</ds-truncatable-part>
5858
</div>
5959
<ds-additional-metadata [object]="dso"></ds-additional-metadata>

src/app/shared/truncatable/truncatable-part/truncatable-part.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export class TruncatablePartComponent implements AfterViewChecked, OnInit, OnDes
127127
const entry = this.content.nativeElement;
128128
if (entry.scrollHeight > entry.offsetHeight) {
129129
if (entry.children.length > 0) {
130-
if (entry.children[entry.children.length - 1].scrollHeight > entry.offsetHeight) {
130+
if (entry.children[entry.children.length - 1].offsetHeight > entry.offsetHeight) {
131131
entry.classList.add('truncated');
132132
entry.classList.remove('removeFaded');
133133
} else {

0 commit comments

Comments
 (0)