mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
Merge branch 'DSC-516-Style-New' of bitbucket.org:4Science/dspace-angular into DSC-516-Style-New
This commit is contained in:
@@ -5,3 +5,7 @@
|
||||
.btn:focus {
|
||||
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[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 {
|
||||
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');
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user