fix config page styling

This commit is contained in:
Arthur Lu 2023-06-09 06:55:14 +00:00
parent 55a3574da2
commit 8eee9fabf1

View File

@ -133,6 +133,8 @@ function addDiskLine(fieldset, busPrefix, busName, device, diskDetails) {
let diskDesc = document.createElement("p"); let diskDesc = document.createElement("p");
diskDesc.innerText = diskDetails; diskDesc.innerText = diskDetails;
diskDesc.dataset.disk = diskID; diskDesc.dataset.disk = diskID;
diskDesc.style.overflowX = "hidden";
diskDesc.style.whiteSpace = "nowrap";
field.append(diskDesc); field.append(diskDesc);
let actionDiv = document.createElement("div"); let actionDiv = document.createElement("div");
@ -467,6 +469,8 @@ function addNetworkLine(fieldset, prefix, netID, netDetails) {
netDesc.innerText = netDetails; netDesc.innerText = netDetails;
netDesc.dataset.network = netID; netDesc.dataset.network = netID;
netDesc.dataset.netvals = netDetails; netDesc.dataset.netvals = netDetails;
netDesc.style.overflowX = "hidden";
netDesc.style.whiteSpace = "nowrap";
field.append(netDesc); field.append(netDesc);
let actionDiv = document.createElement("div"); let actionDiv = document.createElement("div");
@ -621,6 +625,8 @@ function addDeviceLine(fieldset, prefix, deviceID, deviceDetails, deviceData) {
deviceLabel.innerText = deviceNames.toString(); deviceLabel.innerText = deviceNames.toString();
deviceLabel.dataset.device = deviceID; deviceLabel.dataset.device = deviceID;
deviceLabel.dataset.values = deviceDetails; deviceLabel.dataset.values = deviceDetails;
deviceLabel.style.overflowX = "hidden";
deviceLabel.style.whiteSpace = "nowrap";
field.append(deviceLabel); field.append(deviceLabel);
let actionDiv = document.createElement("div"); let actionDiv = document.createElement("div");