From c8f873758222c37857c1672e2eef440860c13220 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Fri, 9 Jun 2023 06:55:14 +0000 Subject: [PATCH] fix config page styling --- scripts/config.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/config.js b/scripts/config.js index d4863de..8cd39e5 100644 --- a/scripts/config.js +++ b/scripts/config.js @@ -133,6 +133,8 @@ function addDiskLine(fieldset, busPrefix, busName, device, diskDetails) { let diskDesc = document.createElement("p"); diskDesc.innerText = diskDetails; diskDesc.dataset.disk = diskID; + diskDesc.style.overflowX = "hidden"; + diskDesc.style.whiteSpace = "nowrap"; field.append(diskDesc); let actionDiv = document.createElement("div"); @@ -467,6 +469,8 @@ function addNetworkLine(fieldset, prefix, netID, netDetails) { netDesc.innerText = netDetails; netDesc.dataset.network = netID; netDesc.dataset.netvals = netDetails; + netDesc.style.overflowX = "hidden"; + netDesc.style.whiteSpace = "nowrap"; field.append(netDesc); let actionDiv = document.createElement("div"); @@ -621,6 +625,8 @@ function addDeviceLine(fieldset, prefix, deviceID, deviceDetails, deviceData) { deviceLabel.innerText = deviceNames.toString(); deviceLabel.dataset.device = deviceID; deviceLabel.dataset.values = deviceDetails; + deviceLabel.style.overflowX = "hidden"; + deviceLabel.style.whiteSpace = "nowrap"; field.append(deviceLabel); let actionDiv = document.createElement("div");