fix transform for profiles without cover

This commit is contained in:
SrGooglo 2023-03-30 17:09:11 +00:00
parent 5078abc98e
commit 10f1d8f110
2 changed files with 14 additions and 1 deletions

View File

@ -204,7 +204,12 @@ export default class Account extends React.Component {
return <div
ref={this.profileRef}
className="accountProfile"
className={classnames(
"accountProfile",
{
["noCover"]: !user.cover,
}
)}
id="profile"
>
{

View File

@ -8,6 +8,14 @@
width: 100%;
height: 100%;
&.noCover {
.panels {
.leftPanel {
transform: translate(0, 0) !important;
}
}
}
&.topHidden {
.cover {
height: 0;