mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-07-30 00:18:15 +00:00
gui: {dc, node}/Summary: choose columns by panel size
instead of viewport size, similar to the guest summary Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
bbc833099e
commit
f73a73341a
@ -10,15 +10,7 @@ Ext.define('PVE.dc.Summary', {
|
|||||||
|
|
||||||
defaults: {
|
defaults: {
|
||||||
padding: 5,
|
padding: 5,
|
||||||
plugins: 'responsive',
|
columnWidth: 1,
|
||||||
responsiveConfig: {
|
|
||||||
'width < 1900': {
|
|
||||||
columnWidth: 1
|
|
||||||
},
|
|
||||||
'width >= 1900': {
|
|
||||||
columnWidth: 0.5
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
items: [
|
items: [
|
||||||
@ -81,6 +73,12 @@ Ext.define('PVE.dc.Summary', {
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
||||||
|
listeners: {
|
||||||
|
resize: function(panel) {
|
||||||
|
PVE.Utils.updateColumns(panel);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
initComponent: function() {
|
initComponent: function() {
|
||||||
var me = this;
|
var me = this;
|
||||||
|
|
||||||
|
@ -97,20 +97,13 @@ Ext.define('PVE.node.Summary', {
|
|||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
xtype: 'container',
|
xtype: 'container',
|
||||||
|
itemId: 'itemcontainer',
|
||||||
layout: 'column',
|
layout: 'column',
|
||||||
defaults: {
|
defaults: {
|
||||||
minHeight: 320,
|
minHeight: 320,
|
||||||
padding: 5,
|
padding: 5,
|
||||||
plugins: 'responsive',
|
|
||||||
responsiveConfig: {
|
|
||||||
'width < 1900': {
|
|
||||||
columnWidth: 1
|
columnWidth: 1
|
||||||
},
|
},
|
||||||
'width >= 1900': {
|
|
||||||
columnWidth: 0.5
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
xtype: 'pveNodeStatus',
|
xtype: 'pveNodeStatus',
|
||||||
@ -145,8 +138,13 @@ Ext.define('PVE.node.Summary', {
|
|||||||
fields: ['netin','netout'],
|
fields: ['netin','netout'],
|
||||||
store: rrdstore
|
store: rrdstore
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
}
|
listeners: {
|
||||||
|
resize: function(panel) {
|
||||||
|
PVE.Utils.updateColumns(panel);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
],
|
],
|
||||||
listeners: {
|
listeners: {
|
||||||
activate: function() { rstore.startUpdate(); rrdstore.startUpdate(); },
|
activate: function() { rstore.startUpdate(); rrdstore.startUpdate(); },
|
||||||
|
Loading…
Reference in New Issue
Block a user