[pve-devel] [PATCH manager 3/5] fix ceph gui icons

Dominik Csapak d.csapak at proxmox.com
Wed Aug 9 11:42:54 CEST 2017


this adds a new css class for fontawesome which we need under certain
circumstances (it is copied from fontawesome minus a font-size:inherited)

and it changes the icons in the osd tree from x-fa to fa
(which is the correct one there)

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/css/ext6-pve.css     | 8 ++++++++
 www/manager6/ceph/OSD.js | 2 +-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/www/css/ext6-pve.css b/www/css/ext6-pve.css
index 8a5f2af8..722a4d94 100644
--- a/www/css/ext6-pve.css
+++ b/www/css/ext6-pve.css
@@ -537,3 +537,11 @@ table.osds td:first-of-type {
     padding: 10px;
     background-image: none;
 }
+
+.x-fa {
+    diplay: inline-block;
+    font: normal normal normal 14px/1 FontAwesome;
+    text-rendering: auto;
+    -webkit-font-smoothing: antialiased;
+    -moz-osx-font-smoothing: grayscale;
+}
diff --git a/www/manager6/ceph/OSD.js b/www/manager6/ceph/OSD.js
index e651e0ed..7abda7f9 100644
--- a/www/manager6/ceph/OSD.js
+++ b/www/manager6/ceph/OSD.js
@@ -541,7 +541,7 @@ Ext.define('PVE.node.CephOsdTree', {
 		     { type: 'string', name: 'dbdev' },
 		     { type: 'string', name: 'waldev' },
 		     { type: 'string', name: 'iconCls', calculate: function(data) {
-			 var iconCls = 'x-fa x-fa-tree fa-';
+			 var iconCls = 'fa x-fa-tree fa-';
 			 switch (data.type) {
 			    case 'host':
 				 iconCls += 'building';
-- 
2.11.0





More information about the pve-devel mailing list