X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Fshared-main%2Fmisc%2Flist-overflow.component.ts;h=7e4e1b1d1b1d73332402ec01cc4484d4d8cac463;hb=34ba86a8b481e0071c5253fcd562911a48688352;hp=541991f7438f34a8b098e4d8edc5eb6880ab7c23;hpb=0c9a83546687d2ae80b3f5299a8ee59d741f894f;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 541991f74..7e4e1b1d1 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 @@ -17,7 +17,7 @@ import { ScreenService } from '@app/core' import { NgbDropdown, NgbModal } from '@ng-bootstrap/ng-bootstrap' import * as debug from 'debug' -const logger = debug('peertube:main:ListOverflowItem') +const debugLogger = debug('peertube:main:ListOverflowItem') export interface ListOverflowItem { label: string @@ -66,7 +66,7 @@ export class ListOverflowComponent implements AfterV let showItemsUntilIndexExcluded: number let accWidth = 0 - logger('Parent width is %d', parentWidth) + debugLogger('Parent width is %d', parentWidth) for (const [ index, el ] of this.itemsRendered.toArray().entries()) { accWidth += el.nativeElement.getBoundingClientRect().width @@ -79,7 +79,7 @@ export class ListOverflowComponent implements AfterV e.style.visibility = shouldBeVisible ? 'inherit' : 'hidden' } - logger('Accumulated children width is %d so exclude index is %d', accWidth, showItemsUntilIndexExcluded) + debugLogger('Accumulated children width is %d so exclude index is %d', accWidth, showItemsUntilIndexExcluded) this.showItemsUntilIndexExcluded = showItemsUntilIndexExcluded this.cdr.markForCheck()