mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-11 03:24:16 +00:00
fix transform for profiles without cover
This commit is contained in:
parent
5078abc98e
commit
10f1d8f110
@ -204,7 +204,12 @@ export default class Account extends React.Component {
|
|||||||
|
|
||||||
return <div
|
return <div
|
||||||
ref={this.profileRef}
|
ref={this.profileRef}
|
||||||
className="accountProfile"
|
className={classnames(
|
||||||
|
"accountProfile",
|
||||||
|
{
|
||||||
|
["noCover"]: !user.cover,
|
||||||
|
}
|
||||||
|
)}
|
||||||
id="profile"
|
id="profile"
|
||||||
>
|
>
|
||||||
{
|
{
|
||||||
|
@ -8,6 +8,14 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|
||||||
|
&.noCover {
|
||||||
|
.panels {
|
||||||
|
.leftPanel {
|
||||||
|
transform: translate(0, 0) !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
&.topHidden {
|
&.topHidden {
|
||||||
.cover {
|
.cover {
|
||||||
height: 0;
|
height: 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user