mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
[DSC-516] Removed faded effect
This commit is contained in:
@@ -5,3 +5,7 @@
|
|||||||
.btn:focus {
|
.btn:focus {
|
||||||
box-shadow: none !important;
|
box-shadow: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.removeFaded {
|
||||||
|
position: inherit;
|
||||||
|
}
|
||||||
|
@@ -108,14 +108,23 @@ export class TruncatablePartComponent implements AfterViewChecked, OnInit, OnDes
|
|||||||
if (entry.children.length > 0) {
|
if (entry.children.length > 0) {
|
||||||
if (entry.children[entry.children.length - 1].offsetHeight > entry.offsetHeight) {
|
if (entry.children[entry.children.length - 1].offsetHeight > entry.offsetHeight) {
|
||||||
entry.classList.add('truncated');
|
entry.classList.add('truncated');
|
||||||
|
entry.classList.remove('removeFaded');
|
||||||
} else {
|
} else {
|
||||||
entry.classList.remove('truncated');
|
entry.classList.remove('truncated');
|
||||||
|
entry.classList.add('removeFaded');
|
||||||
}
|
}
|
||||||
} else {
|
} 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 {
|
} else {
|
||||||
entry.classList.remove('truncated');
|
entry.classList.remove('truncated');
|
||||||
|
entry.classList.add('removeFaded');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user