Fix #934. Sidebar hide-unhide as plugin. (#962)

This commit is contained in:
Chen-I Lim 2021-08-12 11:59:56 -07:00 committed by GitHub
parent a442f08ed3
commit 9403fb91c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 0 deletions

View file

@ -19,6 +19,8 @@
width: 50px;
background: none;
padding: 0;
padding-left: 10px;
display: block !important;
> div {
padding: 0;
@ -40,7 +42,11 @@
}
.WorkspaceTitle {
display: flex;
flex-direction: row;
padding: 0 16px;
margin-bottom: 12px;
font-weight: 600;
}

View file

@ -77,6 +77,15 @@ const Sidebar = React.memo((props: Props) => {
{workspace && workspace.id !== '0' &&
<div className='WorkspaceTitle'>
{workspace.title}
{Utils.isFocalboardPlugin() &&
<>
<div className='octo-spacer'/>
<IconButton
onClick={() => setHidden(true)}
icon={<HideSidebarIcon/>}
/>
</>
}
</div>
}
<div className='octo-sidebar-list'>