chore: adjust ui

This commit is contained in:
sigoden 2022-06-19 22:16:43 +08:00
parent b1b0fdd4db
commit 7194ebf248
3 changed files with 6 additions and 3 deletions

View file

@ -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 {

View file

@ -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>

View file

@ -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>