[DSC-516] Removed faded effect

This commit is contained in:
Sufiyan Shaikh
2022-05-27 20:57:38 +05:30
parent 21a6540a36
commit ea7a40a75a
2 changed files with 14 additions and 1 deletions

View File

@@ -5,3 +5,7 @@
.btn:focus {
box-shadow: none !important;
}
.removeFaded {
position: inherit;
}

View File

@@ -108,14 +108,23 @@ export class TruncatablePartComponent implements AfterViewChecked, OnInit, OnDes
if (entry.children.length > 0) {
if (entry.children[entry.children.length - 1].offsetHeight > entry.offsetHeight) {
entry.classList.add('truncated');
entry.classList.remove('removeFaded');
} else {
entry.classList.remove('truncated');
entry.classList.add('removeFaded');
}
} else {
entry.classList.add('truncated');
if (entry.innerText.length > 0) {
entry.classList.add('truncated');
entry.classList.remove('removeFaded');
} else {
entry.classList.remove('truncated');
entry.classList.add('removeFaded');
}
}
} else {
entry.classList.remove('truncated');
entry.classList.add('removeFaded');
}
}