fixed the style of Upload File

pull/1/head
LianaHus 5 years ago
parent b1aa0deb6f
commit bbb29e8fe8
  1. 9
      src/app/files/file-explorer.js
  2. 2
      src/app/files/fileProvider.js

@ -621,12 +621,17 @@ fileExplorer.prototype.renderMenuItems = function () {
items = this.menuItems.map(({action, title, icon}) => { items = this.menuItems.map(({action, title, icon}) => {
if (action === 'uploadFile') { if (action === 'uploadFile') {
return yo` return yo`
<label id=${action} class="${icon} ${css.newFile}" title="${title}"> <span
id=${action}
data-id="fileExplorerUploadFile${action}"
class="${icon} ${css.newFile}"
title="${title}"
>
<input type="file" onchange=${(event) => { <input type="file" onchange=${(event) => {
event.stopPropagation() event.stopPropagation()
this.uploadFile(event) this.uploadFile(event)
}} multiple /> }} multiple />
</label> </span>
` `
} else { } else {
return yo` return yo`

@ -133,7 +133,7 @@ class FileProvider {
return false return false
} }
isDirectory(path) { isDirectory (path) {
return window.remixFileSystem.statSync(path).isDirectory() return window.remixFileSystem.statSync(path).isDirectory()
} }

Loading…
Cancel
Save