diff --git a/src/renderer/components/layout/sidebar-item.tsx b/src/renderer/components/layout/sidebar-item.tsx index 61957a61a3..113cef6634 100644 --- a/src/renderer/components/layout/sidebar-item.tsx +++ b/src/renderer/components/layout/sidebar-item.tsx @@ -62,10 +62,6 @@ export class SidebarItem extends React.Component { return this.props.id; } - @computed get compact(): boolean { - return Boolean(sidebarStorage.get().compact); - } - @computed get expanded(): boolean { return Boolean(sidebarStorage.get().expanded[this.id]); } @@ -78,8 +74,6 @@ export class SidebarItem extends React.Component { } @computed get isExpandable(): boolean { - if (this.compact) return false; // not available in compact-mode currently - return Boolean(this.props.children); } @@ -108,10 +102,8 @@ export class SidebarItem extends React.Component { if (isHidden) return null; - const { isActive, id, compact, expanded, isExpandable, toggleExpand } = this; - const classNames = cssNames(SidebarItem.displayName, className, { - compact, - }); + const { isActive, id, expanded, isExpandable, toggleExpand } = this; + const classNames = cssNames(SidebarItem.displayName, className); return (