[pve-devel] [PATCH manager 14/15] gui: ceph: tweak heights

Dominik Csapak d.csapak at proxmox.com
Mon May 27 14:14:05 CEST 2019


so that it uses the space better in 1-column and 2-column mode

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/ceph/Status.js       | 9 ++++++---
 www/manager6/ceph/StatusDetail.js | 2 +-
 2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/www/manager6/ceph/Status.js b/www/manager6/ceph/Status.js
index b8b98dd8..8d879dd7 100644
--- a/www/manager6/ceph/Status.js
+++ b/www/manager6/ceph/Status.js
@@ -24,13 +24,14 @@ Ext.define('PVE.node.CephStatus', {
 	    plugins: 'responsive',
 	    responsiveConfig: {
 		'width < 1900': {
+		    minHeight: 230,
 		    columnWidth: 1
 		},
 		'width >= 1900': {
+		    minHeight: 500,
 		    columnWidth: 0.5
 		}
 	    },
-	    minHeight: 210,
 	    layout: {
 		type: 'hbox',
 		align: 'stretch'
@@ -120,10 +121,12 @@ Ext.define('PVE.node.CephStatus', {
 	    plugins: 'responsive',
 	    responsiveConfig: {
 		'width < 1900': {
-		    columnWidth: 1
+		    columnWidth: 1,
+		    minHeight: 250
 		},
 		'width >= 1900': {
-		    columnWidth: 0.5
+		    columnWidth: 0.5,
+		    minHeight: 300
 		}
 	    },
 	    title: gettext('Status')
diff --git a/www/manager6/ceph/StatusDetail.js b/www/manager6/ceph/StatusDetail.js
index 0b67450a..275d776d 100644
--- a/www/manager6/ceph/StatusDetail.js
+++ b/www/manager6/ceph/StatusDetail.js
@@ -7,7 +7,7 @@ Ext.define('PVE.ceph.StatusDetail', {
 	align: 'stretch'
     },
 
-    bodyPadding: '0 5 20',
+    bodyPadding: '0 5',
     defaults: {
 	xtype: 'box',
 	style: {
-- 
2.11.0





More information about the pve-devel mailing list