[pve-devel] [PATCH manager 1/2] ui: ipview: Use monospace font for IPs and MAC addresses
Maximiliano Sandoval R
m.sandoval at proxmox.com
Thu Nov 16 14:13:29 CET 2023
It becomes easier to read when you have multiple rows showing MACs when
they have the same size.
Signed-off-by: Maximiliano Sandoval R <m.sandoval at proxmox.com>
---
www/manager6/qemu/AgentIPView.js | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/www/manager6/qemu/AgentIPView.js b/www/manager6/qemu/AgentIPView.js
index 1411361a..1567bb42 100644
--- a/www/manager6/qemu/AgentIPView.js
+++ b/www/manager6/qemu/AgentIPView.js
@@ -22,13 +22,17 @@ Ext.define('PVE.window.IPInfo', {
dataIndex: 'hardware-address',
text: gettext('MAC address'),
width: 140,
+ renderer: function(val, metaData) {
+ metaData.style += 'font-family: monospace;';
+ return val;
+ },
},
{
dataIndex: 'ip-addresses',
text: gettext('IP address'),
align: 'right',
flex: 4,
- renderer: function(val) {
+ renderer: function(val, metaData) {
if (!Ext.isArray(val)) {
return '';
}
@@ -40,6 +44,7 @@ Ext.define('PVE.window.IPInfo', {
ips.push(addr + '/' + pref);
}
});
+ metaData.style += 'font-family: monospace;';
return ips.join('<br>');
},
},
--
2.39.2
More information about the pve-devel
mailing list