From 235e81cccbfa441888736a04db72ddc3abe24967 Mon Sep 17 00:00:00 2001 From: Nicolas Constant Date: Sat, 10 Aug 2019 14:27:38 -0400 Subject: [PATCH] fix floating element on small profile --- .../components/stream/user-profile/user-profile.component.scss | 2 +- .../components/stream/user-profile/user-profile.component.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/components/stream/user-profile/user-profile.component.scss b/src/app/components/stream/user-profile/user-profile.component.scss index 47b9b0b7..ca2eb722 100644 --- a/src/app/components/stream/user-profile/user-profile.component.scss +++ b/src/app/components/stream/user-profile/user-profile.component.scss @@ -256,7 +256,7 @@ $floating-header-height: 60px; } &-description { - padding: 10px 10px 15px 10px; + padding: 9px 10px 15px 10px; font-size: 13px; // border-bottom: 1px solid black; diff --git a/src/app/components/stream/user-profile/user-profile.component.ts b/src/app/components/stream/user-profile/user-profile.component.ts index 99e17b6f..da7d8c26 100644 --- a/src/app/components/stream/user-profile/user-profile.component.ts +++ b/src/app/components/stream/user-profile/user-profile.component.ts @@ -270,7 +270,7 @@ export class UserProfileComponent implements OnInit { var element = this.statustream.nativeElement as HTMLElement; const atBottom = element.scrollHeight <= element.clientHeight + element.scrollTop + 1000; - if (element.scrollTop > 150) { + if (element.scrollTop > 135) { this.showFloatingHeader = true; } else { this.showFloatingHeader = false;