always unfolded & no label on root

pull/5370/head
yann300 4 years ago
parent c8ff3cf069
commit 312d81dde5
  1. 2
      libs/remix-ui/file-explorer/src/lib/file-explorer-menu.tsx
  2. 5
      libs/remix-ui/file-explorer/src/lib/file-explorer.tsx

@ -45,7 +45,7 @@ export const FileExplorerMenu = (props: FileExplorerMenuProps) => {
return (
<>
<span className='remixui_label' title={props.title} data-path={props.title} style={{ fontWeight: 'bold' }}>{ '/' }</span>
<span className='remixui_label' title={props.title} data-path={props.title} style={{ fontWeight: 'bold' }}>{ props.title }</span>
<span className="remixui_menu">{
state.menuItems.map(({ action, title, icon }, index) => {
if (action === 'uploadFile') {

@ -1022,6 +1022,7 @@ export const FileExplorer = (props: FileExplorerProps) => {
<div>
<TreeView id='treeView'>
<TreeViewItem id="treeViewItem"
controlBehaviour={true}
label={
<div onClick={(e) => {
e.stopPropagation()
@ -1038,7 +1039,7 @@ export const FileExplorer = (props: FileExplorerProps) => {
plugin.resetFocus(true)
}}>
<FileExplorerMenu
title={name}
title={''}
menuItems={props.menuItems}
createNewFile={handleNewFileInput}
createNewFolder={handleNewFolderInput}
@ -1048,7 +1049,7 @@ export const FileExplorer = (props: FileExplorerProps) => {
/>
</div>
}
expand={state.expandPath.includes(props.name)}>
expand={true}>
<div className='pb-2'>
<TreeView id='treeViewMenu'>
{

Loading…
Cancel
Save