From 253342826cba4b2e3096f1591603e7a2c1145a14 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Tue, 17 Jan 2023 11:15:04 -0800 Subject: [PATCH] use grid-column to span some inputs Signed-off-by: Arthur Lu --- scripts/config.js | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/scripts/config.js b/scripts/config.js index b3de554..7450f83 100644 --- a/scripts/config.js +++ b/scripts/config.js @@ -158,6 +158,7 @@ async function addDiskLine (fieldset, busPrefix, busName, device, diskDataParsed let pathInput = document.createElement("input"); pathInput.value = diskDataParsed.mp; pathInput.id = `${busPrefix}_${device}_path`; + pathInput.style.gridColumn = "auto / span 2"; field.append(pathInput); let blank = document.createElement("div"); @@ -170,17 +171,13 @@ async function addDiskLine (fieldset, busPrefix, busName, device, diskDataParsed diskImageSelect.add(new Option(element.volid.replace(`${storage}:iso/`, ""), element.volid)); }); diskImageSelect.value = diskDataParsed.filename; + diskImageSelect.style.gridColumn = "auto / span 2"; field.append(diskImageSelect); - - let blank = document.createElement("div"); - field.append(blank); } else { - let blank1 = document.createElement("div"); - field.append(blank1); - - let blank2 = document.createElement("div"); - field.append(blank2); + let blank = document.createElement("div"); + blank.style.gridColumn = "auto / span 2"; + field.append(blank); } let deleteDiv = document.createElement("div");