Commit 5214496d authored by yann300's avatar yann300

always unfolded & no label on root

parent 3ed12e16
......@@ -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'>
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment