[pve-devel] applied: [PATCH manager 3/5] fix ceph gui icons
Fabian Grünbichler
f.gruenbichler at proxmox.com
Thu Aug 10 10:13:19 CEST 2017
On Wed, Aug 09, 2017 at 11:42:54AM +0200, Dominik Csapak wrote:
> 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
>
>
> _______________________________________________
> pve-devel mailing list
> pve-devel at pve.proxmox.com
> https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
More information about the pve-devel
mailing list