@@ -67,12 +67,7 @@ export const FileExplorerMenu = (props: FileExplorerMenuProps) => {
6767
6868 return (
6969 < >
70- < CustomTooltip placement = "top" tooltipId = "remixuilabelTooltip" tooltipClasses = "text-nowrap" tooltipText = { props . title } >
71- < span className = "remixui_label" data-path = { props . title } style = { { fontWeight : 'bold' } } >
72- { props . title }
73- </ span >
74- </ CustomTooltip >
75- < span className = "pl-0 pb-1" >
70+ < span data-id = "spanContaining" className = "pl-0 pb-1 w-50" >
7671 { state . menuItems . map ( ( { action, title, icon, placement} , index ) => {
7772 if ( action === 'uploadFile' ) {
7873 return (
@@ -83,7 +78,13 @@ export const FileExplorerMenu = (props: FileExplorerMenuProps) => {
8378 tooltipText = { < FormattedMessage id = { `filePanel.${ action } ` } defaultMessage = { title } /> }
8479 key = { `index-${ action } -${ placement } -${ icon } ` }
8580 >
86- < label id = { action } style = { { fontSize : '1.1rem' , cursor : 'pointer' } } data-id = { 'fileExplorerUploadFile' + action } className = { icon + ' mb-0 px-1 remixui_newFile' } key = { `index-${ action } -${ placement } -${ icon } ` } >
81+ < label
82+ id = { action }
83+ style = { { fontSize : '1.1rem' , cursor : 'pointer' } }
84+ data-id = { 'fileExplorerUploadFile' + action }
85+ className = { icon + ' mx-1 remixui_menuItem' }
86+ key = { `index-${ action } -${ placement } -${ icon } ` }
87+ >
8788 < input
8889 id = "fileUpload"
8990 data-id = "fileExplorerFileUpload"
@@ -108,7 +109,13 @@ export const FileExplorerMenu = (props: FileExplorerMenuProps) => {
108109 tooltipText = { < FormattedMessage id = { `filePanel.${ action } ` } defaultMessage = { title } /> }
109110 key = { `index-${ action } -${ placement } -${ icon } ` }
110111 >
111- < label id = { action } style = { { fontSize : '1.1rem' , cursor : 'pointer' } } data-id = { 'fileExplorerUploadFolder' + action } className = { icon + ' mb-0 px-1 remixui_newFile' } key = { `index-${ action } -${ placement } -${ icon } ` } >
112+ < label
113+ id = { action }
114+ style = { { fontSize : '1.1rem' , cursor : 'pointer' } }
115+ data-id = { 'fileExplorerUploadFolder' + action }
116+ className = { icon + ' mx-1 remixui_menuItem' }
117+ key = { `index-${ action } -${ placement } -${ icon } ` }
118+ >
112119 < input
113120 id = "folderUpload"
114121 data-id = "fileExplorerFolderUpload"
@@ -151,7 +158,7 @@ export const FileExplorerMenu = (props: FileExplorerMenuProps) => {
151158 state . actions [ action ] ( )
152159 }
153160 } }
154- className = { 'newFile ' + icon + ' pr-2 pl-1 remixui_newFile ' }
161+ className = { icon + ' mx-1 remixui_menuItem ' }
155162 key = { `${ action } -${ title } -${ index } ` }
156163 > </ label >
157164 </ CustomTooltip >
0 commit comments