[pve-devel] [PATCH manager 1/5] qemu: fix icon alignment in "Add Hardware" menu

Stefan Reiter s.reiter at proxmox.com
Thu Feb 20 18:10:41 CET 2020


It was ever so slightly off.

Signed-off-by: Stefan Reiter <s.reiter at proxmox.com>
---

Couldn't find another place this occured, so I fixed it specifically here.
Not that noticeable currently, but it really felt out of place with the rather
square 'die' icon not being aligned.

 www/css/ext6-pve.css              | 5 +++++
 www/manager6/qemu/HardwareView.js | 1 +
 2 files changed, 6 insertions(+)

diff --git a/www/css/ext6-pve.css b/www/css/ext6-pve.css
index d40b4237..df49df73 100644
--- a/www/css/ext6-pve.css
+++ b/www/css/ext6-pve.css
@@ -286,6 +286,11 @@
     padding-left: 20px;
 }
 
+/* fix alignment for VM hardware add menu */
+.pve-add-hw-menu .x-menu-item-icon:not(.fa) {
+    left: 1px;
+}
+
 .pve-itype-fa > .x-grid-cell-inner{
     padding-left: 3px;
 }
diff --git a/www/manager6/qemu/HardwareView.js b/www/manager6/qemu/HardwareView.js
index ec408261..a78e7dd4 100644
--- a/www/manager6/qemu/HardwareView.js
+++ b/www/manager6/qemu/HardwareView.js
@@ -610,6 +610,7 @@ Ext.define('PVE.qemu.HardwareView', {
 		{
 		    text: gettext('Add'),
 		    menu: new Ext.menu.Menu({
+			cls: 'pve-add-hw-menu',
 			items: [
 			    {
 				text: gettext('Hard Disk'),
-- 
2.20.1





More information about the pve-devel mailing list