HoverCard: Improve long bio situation

This commit is contained in:
Alex Gleason 2020-08-02 20:44:47 -05:00
parent 1266585aef
commit 24e7ce6e83
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7
2 changed files with 13 additions and 1 deletions

View file

@ -14,7 +14,7 @@
transition-property: opacity; transition-property: opacity;
transition-duration: 0.2s; transition-duration: 0.2s;
transition-delay: 0.7s; transition-delay: 0.7s;
width: 265px; width: 300px;
z-index: 998; z-index: 998;
left: -10px; left: -10px;
padding-top: 20px; padding-top: 20px;
@ -73,6 +73,18 @@
.profile-hover-card__bio { .profile-hover-card__bio {
margin: 0 20px 20px; margin: 0 20px 20px;
max-height: 4em;
&::after {
content: '';
display: block;
position: absolute;
width: 100%;
height: 20px;
bottom: 0;
left: 0;
background: linear-gradient(0deg, var(--foreground-color) 0%, var(--foreground-color), 80%, transparent);
}
} }
} }