diff --git a/supervisor/shared/web_workflow/web_workflow.c b/supervisor/shared/web_workflow/web_workflow.c
index c8b8c630db..28662fdbb7 100644
--- a/supervisor/shared/web_workflow/web_workflow.c
+++ b/supervisor/shared/web_workflow/web_workflow.c
@@ -442,7 +442,9 @@ static void _reply_directory_html(socketpool_socket_obj_t *socket, FF_DIR *dir,
socketpool_socket_send(socket, (const uint8_t *)ok_response, strlen(ok_response));
_send_chunk(socket, "
");
_send_chunk(socket, path);
- _send_chunk(socket, "");
+ _send_chunk(socket, "");
+ _send_chunk(socket, "");
+ _send_chunk(socket, "");
_send_chunk(socket, path);
_send_chunk(socket, "
");
if (strlen(path) > 1) {
@@ -468,7 +470,6 @@ static void _reply_directory_html(socketpool_socket_obj_t *socket, FF_DIR *dir,
// entry->file_size = file_info.fsize;
// }
// _send_chunk(socket, "
");
- bool editable = false;
if ((file_info.fattrib & AM_DIR) != 0) {
_send_chunk(socket, "🗀\t");
} else if (_endswith(file_info.fname, ".txt") ||
@@ -476,10 +477,8 @@ static void _reply_directory_html(socketpool_socket_obj_t *socket, FF_DIR *dir,
_endswith(file_info.fname, ".js") ||
_endswith(file_info.fname, ".json")) {
_send_chunk(socket, "🖹\t");
- editable = true;
} else if (_endswith(file_info.fname, ".html")) {
_send_chunk(socket, "🌐\t");
- editable = true;
} else {
_send_chunk(socket, "⬇\t");
}
@@ -494,13 +493,15 @@ static void _reply_directory_html(socketpool_socket_obj_t *socket, FF_DIR *dir,
_send_chunk(socket, file_info.fname);
_send_chunk(socket, "");
- if (editable) {
- _send_chunk(socket, "✏️");
- }
- _send_chunk(socket, "🗑️
");
+ _send_chunk(socket, "
");
res = f_readdir(dir, &file_info);
}
- _send_chunk(socket, "Upload:");
+ _send_chunk(socket, "
");
+
+ _send_chunk(socket, "
+🗀");
+ _send_chunk(socket, "