diff options
Diffstat (limited to 'client/src/app')
-rw-r--r-- | client/src/app/shared/misc/list-overflow.component.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/client/src/app/shared/misc/list-overflow.component.ts b/client/src/app/shared/misc/list-overflow.component.ts index c493ab795..30f43ba43 100644 --- a/client/src/app/shared/misc/list-overflow.component.ts +++ b/client/src/app/shared/misc/list-overflow.component.ts | |||
@@ -28,11 +28,12 @@ export interface ListOverflowItem { | |||
28 | changeDetection: ChangeDetectionStrategy.OnPush | 28 | changeDetection: ChangeDetectionStrategy.OnPush |
29 | }) | 29 | }) |
30 | export class ListOverflowComponent<T extends ListOverflowItem> implements AfterViewInit { | 30 | export class ListOverflowComponent<T extends ListOverflowItem> implements AfterViewInit { |
31 | @Input() items: T[] | ||
32 | @Input() itemTemplate: TemplateRef<{item: T}> | ||
33 | |||
31 | @ViewChild('modal', { static: true }) modal: ElementRef | 34 | @ViewChild('modal', { static: true }) modal: ElementRef |
32 | @ViewChild('itemsParent', { static: true }) parent: ElementRef<HTMLDivElement> | 35 | @ViewChild('itemsParent', { static: true }) parent: ElementRef<HTMLDivElement> |
33 | @ViewChildren('itemsRendered') itemsRendered: QueryList<ElementRef> | 36 | @ViewChildren('itemsRendered') itemsRendered: QueryList<ElementRef> |
34 | @Input() items: T[] | ||
35 | @Input() itemTemplate: TemplateRef<{item: T}> | ||
36 | 37 | ||
37 | showItemsUntilIndexExcluded: number | 38 | showItemsUntilIndexExcluded: number |
38 | active = false | 39 | active = false |
@@ -55,7 +56,7 @@ export class ListOverflowComponent<T extends ListOverflowItem> implements AfterV | |||
55 | return !!this.showItemsUntilIndexExcluded | 56 | return !!this.showItemsUntilIndexExcluded |
56 | } | 57 | } |
57 | 58 | ||
58 | @HostListener('window:resize', ['$event']) | 59 | @HostListener('window:resize') |
59 | onWindowResize () { | 60 | onWindowResize () { |
60 | this.isInTouchScreen = !!this.screenService.isInTouchScreen() | 61 | this.isInTouchScreen = !!this.screenService.isInTouchScreen() |
61 | this.isInMobileView = !!this.screenService.isInMobileView() | 62 | this.isInMobileView = !!this.screenService.isInMobileView() |