X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Fshared-main%2Fmisc%2Flist-overflow.component.ts;h=fbc4810932c58891526763dc8695b8b7088da951;hb=db129781cabca2c66d18cd1dcdfe40f87e9ec030;hp=144e0f1567370ac2bad8809d59edd88e22cc4e6c;hpb=67ed6552b831df66713bac9e672738796128d33f;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/shared/shared-main/misc/list-overflow.component.ts b/client/src/app/shared/shared-main/misc/list-overflow.component.ts index 144e0f156..fbc481093 100644 --- a/client/src/app/shared/shared-main/misc/list-overflow.component.ts +++ b/client/src/app/shared/shared-main/misc/list-overflow.component.ts @@ -22,7 +22,7 @@ export interface ListOverflowItem { } @Component({ - selector: 'list-overflow', + selector: 'my-list-overflow', templateUrl: './list-overflow.component.html', styleUrls: [ './list-overflow.component.scss' ], changeDetection: ChangeDetectionStrategy.OnPush @@ -65,7 +65,7 @@ export class ListOverflowComponent implements AfterV let showItemsUntilIndexExcluded: number let accWidth = 0 - for (const [index, el] of this.itemsRendered.toArray().entries()) { + for (const [ index, el ] of this.itemsRendered.toArray().entries()) { accWidth += el.nativeElement.getBoundingClientRect().width if (showItemsUntilIndexExcluded === undefined) { showItemsUntilIndexExcluded = (parentWidth < accWidth) ? index : undefined