mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
[DSC-516] show more button position at the bottom
This commit is contained in:
@@ -61,11 +61,13 @@ export class TruncatableComponent implements OnInit, AfterViewChecked {
|
|||||||
|
|
||||||
ngAfterViewChecked() {
|
ngAfterViewChecked() {
|
||||||
const truncatedElements = this.el.nativeElement.querySelectorAll('.truncated');
|
const truncatedElements = this.el.nativeElement.querySelectorAll('.truncated');
|
||||||
if (truncatedElements?.length > 1) {
|
if (truncatedElements?.length > 0) {
|
||||||
for (let i = 0; i < (truncatedElements.length - 1); i++) {
|
const truncateElements = this.el.nativeElement.querySelectorAll('.dont-break-out');
|
||||||
truncatedElements[i].classList.remove('truncated');
|
for (let i = 0; i < (truncateElements.length - 1); i++) {
|
||||||
truncatedElements[i].classList.add('notruncatable');
|
truncateElements[i].classList.remove('truncated');
|
||||||
|
truncateElements[i].classList.add('notruncatable');
|
||||||
}
|
}
|
||||||
|
truncateElements[truncateElements.length - 1].classList.add('truncated');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user