Browse Source

chore: adjust ui

pull/59/head
sigoden 3 years ago
parent
commit
7194ebf248
  1. 3
      assets/index.css
  2. 2
      assets/index.html
  3. 4
      assets/index.js

3
assets/index.css

@ -46,6 +46,7 @@ html {
.toolbox { .toolbox {
display: flex; display: flex;
margin-right: 10px;
} }
.searchbar { .searchbar {
@ -57,7 +58,7 @@ html {
transition: all .15s; transition: all .15s;
border: 1px #ddd solid; border: 1px #ddd solid;
border-radius: 15px; border-radius: 15px;
margin: 0 0 2px 10px; margin-bottom: 2px;
} }
.searchbar #search { .searchbar #search {

2
assets/index.html

@ -36,7 +36,7 @@
<thead> <thead>
<tr> <tr>
<th class="cell-name" colspan="2">Name</th> <th class="cell-name" colspan="2">Name</th>
<th class="cell-status">Speed - Progress - Time Left</th> <th class="cell-status">Progress</th>
</tr> </tr>
</thead> </thead>
</table> </table>

4
assets/index.js

@ -67,8 +67,10 @@ class Uploader {
let url = getUrl(name); let url = getUrl(name);
$uploadersTable.insertAdjacentHTML("beforeend", ` $uploadersTable.insertAdjacentHTML("beforeend", `
<tr id="upload${idx}" class="uploader"> <tr id="upload${idx}" class="uploader">
<td class="path cell-icon">
${getSvg(file.path_type)}
</td>
<td class="path cell-name"> <td class="path cell-name">
${getSvg("File")}
<a href="${url}">${name}</a> <a href="${url}">${name}</a>
</td> </td>
<td class="cell-status upload-status" id="uploadStatus${idx}"></td> <td class="cell-status upload-status" id="uploadStatus${idx}"></td>

Loading…
Cancel
Save