]> git.proxmox.com Git - pve-manager.git/commit
ui: resource tree: fix extra space inconsistency in some node elements
authorDominik Csapak <d.csapak@proxmox.com>
Thu, 23 Nov 2023 08:25:40 +0000 (09:25 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 23 Nov 2023 08:36:57 +0000 (09:36 +0100)
commitfa17629b5fe742d7a636089d3cdab7c730fefa0c
tree1214d962bdc5538fdf3637c9ac60fe7f77032c67
parent4a8846554681d750c4c7e7c9f60e6a8fd48d4d9c
ui: resource tree: fix extra space inconsistency in some node elements

When a node element was updated, it was put through the 'setText'
method which accidentally added a space before it's name.

Fix this by putting the space into the status variable.

Without this patch one could observe a vertical misalignment when some
nodes had guests on them but others had none.

Fixes: 2f414c50 ("ui: resource tree: limit tooltip to icon and text")
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/tree/ResourceTree.js