fix config form icon alts

This commit is contained in:
Arthur Lu 2023-09-21 22:41:16 +00:00
parent bf2509ee8f
commit f179c0f7fb
2 changed files with 8 additions and 5 deletions

View File

@ -761,8 +761,8 @@ function addBootLine (container, data, before = null) {
item.data = data; item.data = data;
item.innerHTML = ` item.innerHTML = `
<div style="display: grid; grid-template-columns: auto auto 8ch 1fr; column-gap: 10px; align-items: center;"> <div style="display: grid; grid-template-columns: auto auto 8ch 1fr; column-gap: 10px; align-items: center;">
<img src="images/actions/drag.svg" id="drag"> <img src="images/actions/drag.svg" id="drag" alt="drag icon">
<img src="${bootMetaData[data.prefix].icon}"> <img src="${bootMetaData[data.prefix].icon}" alt="${bootMetaData[data.prefix].alt}">
<p style="margin: 0px;">${data.id}</p> <p style="margin: 0px;">${data.id}</p>
<p style="margin: 0px; overflow-x: hidden; white-space: nowrap;">${data.detail}</p> <p style="margin: 0px; overflow-x: hidden; white-space: nowrap;">${data.detail}</p>
</div> </div>

View File

@ -132,13 +132,16 @@ export const nodesConfig = {
export const bootConfig = { export const bootConfig = {
eligiblePrefixes: ["ide", "sata", "net"], eligiblePrefixes: ["ide", "sata", "net"],
ide: { ide: {
icon: "images/resources/disk.svg" icon: "images/resources/disk.svg",
alt: "IDE Bootable Icon"
}, },
sata: { sata: {
icon: "images/resources/drive.svg" icon: "images/resources/drive.svg",
alt: "SATA Bootable Icon"
}, },
net: { net: {
icon: "images/resources/network.svg" icon: "images/resources/network.svg",
alt: "NET Bootable Icon"
} }
}; };