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:
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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{profile && profile.user && profile.user.description && (
|
||||||
|
<div className={styles.description}>{profile.user.description}</div>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
|
@ -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;
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue