Skip to content

Commit

Permalink
fixed prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
adam_unchained committed Sep 6, 2023
1 parent 9d1bbbb commit 602c31c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,11 @@
{{ (createdOn || member.createdOn)?.toDate() | date : 'short' }}
</span>
</div>
<p #aboutMember
<p
#aboutMember
class="mt-2 mb-3 leading-5 whitespace-pre-line text-accent-secondary dark:text-accent-secondary-dark text-foregrounds-primary dark:text-foregrounds-primary-dark"
(click)="isAboutExpanded = !isAboutExpanded"
[ngClass]="{
[ngClass]="{
'text-base': fullWidth,
'text-xs': !fullWidth,
'truncate-line-3': !isAboutExpanded,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
/* eslint-disable @typescript-eslint/adjacent-overload-signatures */
import { AfterViewInit, ChangeDetectionStrategy, Component, ElementRef, Input, OnDestroy, ViewChild } from '@angular/core';
import {
AfterViewInit,
ChangeDetectionStrategy,
Component,
ElementRef,
Input,
OnDestroy,
ViewChild,
} from '@angular/core';
import { MemberApi } from '@api/member.api';
import { DeviceService } from '@core/services/device';
import { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy';
Expand Down Expand Up @@ -71,8 +79,8 @@ export class MemberCardComponent implements AfterViewInit, OnDestroy {

private aboutPointer(): void {
const offset = (this.aboutMemberEleRef?.nativeElement.clientHeight || 0) / 3; // matching css value -webkit-line-clamp
this.aboutShowPointer =
(this.aboutMemberEleRef?.nativeElement.scrollHeight || 0) - offset >
this.aboutShowPointer =
(this.aboutMemberEleRef?.nativeElement.scrollHeight || 0) - offset >
(this.aboutMemberEleRef?.nativeElement.clientHeight || 0);
}
}

0 comments on commit 602c31c

Please sign in to comment.