mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
fix sidebar classnames
This commit is contained in:
parent
f2f3988da6
commit
9ec7fcb40e
@ -280,8 +280,7 @@ export default class Sidebar extends React.Component {
|
||||
render() {
|
||||
if (!this.state.menus) return null
|
||||
|
||||
return (
|
||||
<div
|
||||
return <div
|
||||
onMouseEnter={this.onMouseEnter}
|
||||
onMouseLeave={this.handleMouseLeave}
|
||||
className={
|
||||
@ -290,8 +289,8 @@ export default class Sidebar extends React.Component {
|
||||
{
|
||||
["customRender"]: this.state.customRender,
|
||||
["floating"]: window.app?.settings.get("sidebar.floating"),
|
||||
["collapsed"]: !this.state.customRender && this.state.visible && this.state.collapsed,
|
||||
["elevated"]: !this.state.visible && this.state.elevated,
|
||||
["elevated"]: this.state.visible && this.state.elevated,
|
||||
["collapsed"]: this.state.visible && this.state.collapsed,
|
||||
["hidden"]: !this.state.visible,
|
||||
}
|
||||
)
|
||||
@ -361,6 +360,5 @@ export default class Sidebar extends React.Component {
|
||||
</>
|
||||
}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user