@@ -125,6 +125,7 @@ export const RemixUiHomeTab = (props: RemixUiHomeTabProps) => {
125125 }
126126
127127 const createNewFile = async ( ) => {
128+ plugin . verticalIcons . select ( 'filePanel' )
128129 await plugin . call ( 'filePanel' , 'createNewFile' )
129130 }
130131
@@ -261,21 +262,22 @@ export const RemixUiHomeTab = (props: RemixUiHomeTabProps) => {
261262 < h4 > File</ h4 >
262263 < p className = "mb-1" >
263264 < i className = "mr-2 far fa-file" > </ i >
264- < span className = "ml-1 mb-1 remixui_text" onClick = { ( ) => createNewFile ( ) } > New File</ span >
265+ < label className = "ml-1 mb-1 remixui_text" onClick = { ( ) => createNewFile ( ) } > New File</ label >
265266 </ p >
266267 < p className = "mb-1" >
267268 < i className = "mr-2 far fa-file-alt" > </ i >
268- < span className = "ml-1 remixui_labelIt remixui_bigLabelSize} remixui_text" >
269+ < label className = "ml-1 remixui_labelIt remixui_bigLabelSize} remixui_text" htmlFor = "openFileInput ">
269270 Open Files
270- < input title = "open file" type = "file" onChange = { ( event ) => {
271- event . stopPropagation ( )
272- uploadFile ( event . target )
273- } } multiple />
274- </ span >
271+ </ label >
272+ < input title = "open file" type = "file" id = "openFileInput" onChange = { ( event ) => {
273+ event . stopPropagation ( )
274+ plugin . verticalIcons . select ( 'filePanel' )
275+ uploadFile ( event . target )
276+ } } multiple />
275277 </ p >
276278 < p className = "mb-1" >
277279 < i className = "mr-1 far fa-hdd" > </ i >
278- < span className = "ml-1 remixui_text" onClick = { ( ) => connectToLocalhost ( ) } > Connect to Localhost</ span >
280+ < label className = "ml-1 remixui_text" onClick = { ( ) => connectToLocalhost ( ) } > Connect to Localhost</ label >
279281 </ p >
280282 < p className = "mt-3 mb-0" > < label > LOAD FROM:</ label > </ p >
281283 < div className = "btn-group" >
@@ -301,7 +303,7 @@ export const RemixUiHomeTab = (props: RemixUiHomeTabProps) => {
301303 </ p >
302304 < p className = "mb-1" >
303305 < i className = "mr-2 fab fa-ethereum remixui_image" > </ i >
304- < span className = "remixui_text" onClick = { ( ) => switchToPreviousVersion ( ) } > Old experience</ span >
306+ < label className = "remixui_text" onClick = { ( ) => switchToPreviousVersion ( ) } > Old experience</ label >
305307 </ p >
306308 </ div >
307309 </ div >
0 commit comments