fix: improve overall rendering (#10)

This commit is contained in:
Walid
2022-02-09 23:27:54 +01:00
committed by GitHub
parent ee73885fe9
commit 48debe8638
12 changed files with 111 additions and 96 deletions

View File

@ -21,7 +21,7 @@ export const Sidebar: React.FC<SidebarProps> = (props) => {
{
'top-0 right-0 scrollbar-firefox-support overflow-y-auto flex-col space-y-1':
direction === 'right',
'w-64': direction === 'right' && visible,
'w-72': direction === 'right' && visible,
'w-0 opacity-0': !visible,
'w-80': direction === 'left' && visible,
'max-w-max': typeof path !== 'string' && direction === 'left',