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}) => {
if (action === 'uploadFile') {
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) => {
event.stopPropagation()
this.uploadFile(event)
}} multiple />
</label>
</span>
`
} else {
return yo`

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

Loading…
Cancel
Save