Skip to content

Instantly share code, notes, and snippets.

@yaleman
Created April 3, 2021 01:10
Show Gist options
  • Save yaleman/5c80604a376ad11420521e5dfa68a57b to your computer and use it in GitHub Desktop.
Save yaleman/5c80604a376ad11420521e5dfa68a57b to your computer and use it in GitHub Desktop.
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',
@vitoo
Copy link

vitoo commented Feb 17, 2023

do you have the original proxmox repository with this file pvemanagerlib.js please ?

thanks

@yaleman
Copy link
Author

yaleman commented Feb 17, 2023

I can give you a copy of the file as it exists now?

@vitoo
Copy link

vitoo commented Feb 20, 2023

i found the source, it is very hidden, this file is built here : https://git.proxmox.com/?p=pve-manager.git;a=blob;f=www/manager6/Makefile;h=05afeda407f0e94ee2f849ad4c9233a268da21d6;hb=HEAD#l313

line [313] ... pvemanagerlib.js:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment