Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Mod for /usr/share/pve-manager/js/pvemanagerlib.js on Proxmox VE to fix UI width issues
--- /usr/share/pve-manager/js/pvemanagerlib.js.dist 2021-04-03 10:48:43.163503735 +1000
+++ /usr/share/pve-manager/js/pvemanagerlib.js 2021-04-03 10:53:39.855772027 +1000
@@ -38407,7 +38407,7 @@
var ui = me.query('#userinfo')[0];
if (Proxmox.UserName) {
- var msg = Ext.String.format(gettext("You are logged in as {0}"), "'" + Ext.String.htmlEncode(Proxmox.UserName) + "'");
+ var msg = Ext.String.format(gettext(' {0}', Ext.String.htmlEncode(Proxmox.UserName) ));
ui.update('<div class="x-unselectable" style="white-space:nowrap;">' + msg + '</div>');
} else {
ui.update('');
@@ -38533,16 +38533,19 @@
border: false,
margin: '2 0 2 5',
items: [
+/*
{
html: '<a class="x-unselectable" target=_blank href="https://www.proxmox.com">' +
'<img style="padding-top:4px;padding-right:5px" src="/pve2/images/proxmox_logo.png"/></a>'
},
+*/
{
- minWidth: 150,
+// minWidth: 150,
id: 'versioninfo',
html: 'Virtual Environment'
},
- {
+/*
+{
xtype: 'pveGlobalSearchField',
tree: rtree
},
@@ -38563,6 +38566,7 @@
{
flex: 1
},
+*/
{
pack: 'end',
id: 'userinfo',
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment