use grid-column to span some inputs

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
Arthur Lu 2023-01-17 11:15:04 -08:00
parent 70d1995453
commit 253342826c

View File

@ -158,6 +158,7 @@ async function addDiskLine (fieldset, busPrefix, busName, device, diskDataParsed
let pathInput = document.createElement("input"); let pathInput = document.createElement("input");
pathInput.value = diskDataParsed.mp; pathInput.value = diskDataParsed.mp;
pathInput.id = `${busPrefix}_${device}_path`; pathInput.id = `${busPrefix}_${device}_path`;
pathInput.style.gridColumn = "auto / span 2";
field.append(pathInput); field.append(pathInput);
let blank = document.createElement("div"); 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.add(new Option(element.volid.replace(`${storage}:iso/`, ""), element.volid));
}); });
diskImageSelect.value = diskDataParsed.filename; diskImageSelect.value = diskDataParsed.filename;
diskImageSelect.style.gridColumn = "auto / span 2";
field.append(diskImageSelect); field.append(diskImageSelect);
let blank = document.createElement("div");
field.append(blank);
} }
else { else {
let blank1 = document.createElement("div"); let blank = document.createElement("div");
field.append(blank1); blank.style.gridColumn = "auto / span 2";
field.append(blank);
let blank2 = document.createElement("div");
field.append(blank2);
} }
let deleteDiv = document.createElement("div"); let deleteDiv = document.createElement("div");