fix floating element on small profile

This commit is contained in:
Nicolas Constant 2019-08-10 14:27:38 -04:00
parent fc6724d57e
commit 235e81cccb
No known key found for this signature in database
GPG Key ID: 1E9F677FB01A5688
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;