Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
5214496d
Commit
5214496d
authored
Feb 23, 2021
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
always unfolded & no label on root
parent
3ed12e16
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
file-explorer-menu.tsx
libs/remix-ui/file-explorer/src/lib/file-explorer-menu.tsx
+1
-1
file-explorer.tsx
libs/remix-ui/file-explorer/src/lib/file-explorer.tsx
+3
-2
No files found.
libs/remix-ui/file-explorer/src/lib/file-explorer-menu.tsx
View file @
5214496d
...
...
@@ -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'
)
{
...
...
libs/remix-ui/file-explorer/src/lib/file-explorer.tsx
View file @
5214496d
...
...
@@ -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'
>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment