Skip to content

Commit

Permalink
fix: adjust circle only if fontsize is greater than initial even reso…
Browse files Browse the repository at this point in the history
…lution (#442)
  • Loading branch information
abelkhay committed Jan 29, 2024
1 parent bb45b24 commit 00d266e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}

0 comments on commit 00d266e

Please sign in to comment.