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
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
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()