From 4622c48120099488a6e6213940e3fc2d08019530 Mon Sep 17 00:00:00 2001 From: sigoden Date: Thu, 1 Jun 2023 20:33:21 +0800 Subject: [PATCH] fix: ui path table show move action (#219) --- assets/index.css | 2 +- assets/index.js | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/assets/index.css b/assets/index.css index 4bc1ff4..c68f139 100644 --- a/assets/index.css +++ b/assets/index.css @@ -148,7 +148,7 @@ body { } .paths-table .cell-actions { - width: 75px; + width: 90px; display: flex; padding-left: 0.6em; } diff --git a/assets/index.js b/assets/index.js index fa9259e..56c400c 100644 --- a/assets/index.js +++ b/assets/index.js @@ -379,9 +379,8 @@ function addPath(file, index) { } if (DATA.allow_delete) { if (DATA.allow_upload) { - if (isDir) { - actionMove = `
${ICONS.move}
`; - } else { + actionMove = `
${ICONS.move}
`; + if (!isDir) { actionEdit = `${ICONS.edit}`; } } @@ -392,8 +391,8 @@ function addPath(file, index) { ${actionDownload} ${actionMove} - ${actionEdit} ${actionDelete} + ${actionEdit} ` $pathsTableBody.insertAdjacentHTML("beforeend", `