From 099ce9cdfd05fe6483cee47812db98d276d33619 Mon Sep 17 00:00:00 2001 From: shadowcz007 Date: Tue, 26 Dec 2023 16:32:01 +0800 Subject: [PATCH] 1 --- web/index.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/web/index.html b/web/index.html index 8ff763d..112054b 100644 --- a/web/index.html +++ b/web/index.html @@ -46,6 +46,7 @@ .panel img { width: 100%; + height: fit-content; } .input_card { @@ -70,6 +71,7 @@ .card img { width: 200px; + } .run_btn { @@ -248,6 +250,7 @@ // Create an input field for the image name const nameInput = document.createElement("input"); nameInput.type = "file"; + nameInput.style=`width: 88px;` uploadContainer.appendChild(nameInput); // Create an image element to display the uploaded image @@ -344,7 +347,7 @@ icon.src = base64Df; var des = document.createElement('p'); - des.style = `margin-left: 12px;` + des.style = `margin-left: 12px; font-size: 14px;` iconDes.appendChild(icon) iconDes.appendChild(des); iconDes.className = 'description' @@ -415,7 +418,7 @@ element: output, update: function (url, id) { console.log(url, id) - output.querySelector(`#output_${id}`).src = url + if(output.querySelector(`#output_${id}`)) output.querySelector(`#output_${id}`).src = url } },