From: Dominik Csapak Date: Wed, 30 Jun 2021 15:14:55 +0000 (+0200) Subject: APTRepositories: change separation style between panels X-Git-Url: https://git.proxmox.com/?p=proxmox-widget-toolkit.git;a=commitdiff_plain;h=d8b5cd80c84678460041c2b0d909829eca117053 APTRepositories: change separation style between panels having double borders does not look so nice, separate them with a bit of padding also change the warning panel to a simple header Signed-off-by: Dominik Csapak --- diff --git a/src/node/APTRepositories.js b/src/node/APTRepositories.js index 59f5d92..bddcb31 100644 --- a/src/node/APTRepositories.js +++ b/src/node/APTRepositories.js @@ -110,6 +110,8 @@ Ext.define('Proxmox.node.APTRepositoriesErrors', { store: {}, + border: false, + viewConfig: { stripeRows: false, getRowClass: () => 'proxmox-invalid-row', @@ -138,6 +140,8 @@ Ext.define('Proxmox.node.APTRepositoriesGrid', { cls: 'proxmox-apt-repos', // to allow applying styling to general components with local effect + border: false, + tbar: [ { text: gettext('Reload'), @@ -466,18 +470,25 @@ Ext.define('Proxmox.node.APTRepositories', { items: [ { - title: gettext('Warning'), - name: 'repositoriesMainWarning', - xtype: 'panel', + xtype: 'header', + baseCls: 'x-panel-header', bind: { + hidden: '{!mainWarning}', title: '{mainWarning}', + }, + }, + { + xtype: 'box', + bind: { hidden: '{!mainWarning}', }, + height: 5, }, { xtype: 'proxmoxNodeAPTRepositoriesErrors', name: 'repositoriesErrors', hidden: true, + padding: '0 0 5 0', bind: { hidden: '{noErrors}', },