From c789db5cdc58065e70b42c46ddcabb26039c85c5 Mon Sep 17 00:00:00 2001 From: Arthur Belkhayat Date: Wed, 24 Jan 2024 12:35:21 +0100 Subject: [PATCH] fix: adjust circle only if fontsize is greater than initial even resolution --- .../filter-result-count/filter-result-count.component.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/features/orientation/components/filter-result-count/filter-result-count.component.ts b/src/features/orientation/components/filter-result-count/filter-result-count.component.ts index 4d21e4b5..fff02d44 100644 --- a/src/features/orientation/components/filter-result-count/filter-result-count.component.ts +++ b/src/features/orientation/components/filter-result-count/filter-result-count.component.ts @@ -27,8 +27,7 @@ export class FilterResultCountComponent implements AfterViewInit { constructor(private cdr: ChangeDetectorRef) {} ngAfterViewInit(): void { - this.pageIsZoomed = - getComputedStyle(this.textElement.nativeElement).fontSize === this.initialFontSize || window.innerWidth > 1400; + this.pageIsZoomed = getComputedStyle(this.textElement.nativeElement).fontSize > this.initialFontSize; this.cdr.detectChanges(); } }