1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00

profile description

This commit is contained in:
Fedor Katurov 2020-04-08 20:55:18 +07:00
parent fe6f977cf1
commit 60473dc57e
2 changed files with 15 additions and 3 deletions

View file

@ -51,6 +51,10 @@ const ProfilePageLeft: FC<IProps> = ({ username, profile }) => {
</div> </div>
</div> </div>
</div> </div>
{profile && profile.user && profile.user.description && (
<div className={styles.description}>{profile.user.description}</div>
)}
</div> </div>
); );
}; };

View file

@ -1,6 +1,6 @@
.wrap { .wrap {
display: flex; display: flex;
align-items: flex-start; align-items: stretch;
justify-content: stretch; justify-content: stretch;
flex-direction: column; flex-direction: column;
} }
@ -17,7 +17,7 @@
width: 100%; width: 100%;
padding: 0 10px; padding: 0 10px;
position: relative; position: relative;
top: -$radius; margin-top: -$radius;
box-sizing: border-box; box-sizing: border-box;
} }
@ -25,7 +25,6 @@
background: $content_bg; background: $content_bg;
width: 100%; width: 100%;
border-radius: $radius; border-radius: $radius;
box-shadow: rgba(0, 0, 0, 0.3) 0 2px;
} }
.name { .name {
@ -52,6 +51,7 @@
width: 100%; width: 100%;
flex-direction: column; flex-direction: column;
box-sizing: border-box; box-sizing: border-box;
display: none;
a { a {
width: 100%; width: 100%;
@ -77,3 +77,11 @@
fill: currentColor; fill: currentColor;
} }
} }
.description {
padding: $gap;
box-sizing: border-box;
background: darken($content_bg, 4%);
margin: 0 $gap;
border-radius: 0 0 $radius $radius;
}