mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
profile description
This commit is contained in:
parent
fe6f977cf1
commit
60473dc57e
2 changed files with 15 additions and 3 deletions
|
@ -51,6 +51,10 @@ const ProfilePageLeft: FC<IProps> = ({ username, profile }) => {
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{profile && profile.user && profile.user.description && (
|
||||
<div className={styles.description}>{profile.user.description}</div>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
.wrap {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
align-items: stretch;
|
||||
justify-content: stretch;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
@ -17,7 +17,7 @@
|
|||
width: 100%;
|
||||
padding: 0 10px;
|
||||
position: relative;
|
||||
top: -$radius;
|
||||
margin-top: -$radius;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
|
@ -25,7 +25,6 @@
|
|||
background: $content_bg;
|
||||
width: 100%;
|
||||
border-radius: $radius;
|
||||
box-shadow: rgba(0, 0, 0, 0.3) 0 2px;
|
||||
}
|
||||
|
||||
.name {
|
||||
|
@ -52,6 +51,7 @@
|
|||
width: 100%;
|
||||
flex-direction: column;
|
||||
box-sizing: border-box;
|
||||
display: none;
|
||||
|
||||
a {
|
||||
width: 100%;
|
||||
|
@ -77,3 +77,11 @@
|
|||
fill: currentColor;
|
||||
}
|
||||
}
|
||||
|
||||
.description {
|
||||
padding: $gap;
|
||||
box-sizing: border-box;
|
||||
background: darken($content_bg, 4%);
|
||||
margin: 0 $gap;
|
||||
border-radius: 0 0 $radius $radius;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue