]> git.proxmox.com Git - pmg-gui.git/commitdiff
improve TLS panel layout
authorDietmar Maurer <dietmar@proxmox.com>
Thu, 27 Sep 2018 05:16:42 +0000 (07:16 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 27 Sep 2018 05:16:42 +0000 (07:16 +0200)
Use same padding as in SystemConfiguration panel.

js/MailProxyTLSPanel.js

index a7abc78bd5bdf334a44f9c2e6b6c1f3c1dbe7933..cc24a914b979659ddc8a3bdfbc7116c2eb2d7ef6 100644 (file)
@@ -7,23 +7,22 @@ Ext.define('PMG.MailProxyTLSPanel', {
        align: 'stretch'
     },
 
+    bodyPadding: '0 0 10 0',
+    defaults: {
+       collapsible: true,
+       animCollapse: false,
+       margin: '10 10 0 10'
+    },
+
     initComponent: function() {
        var me = this;
 
        var tlsSettings = Ext.create('PMG.MailProxyTLS', {
-           xtype: 'pmgMailProxyTLS',
-           title: gettext('Settings'),
-           border: 0,
-           collapsible: true,
-           padding: '0 0 20 0'
+           title: gettext('Settings')
        });
 
        var tlsDomains = Ext.create('PMG.MailProxyTLSDomains', {
-           xtype: 'pmgMailProxyTLSDomains',
-           title: gettext('TLS Domain Policy'),
-           border: 0,
-           collapsible: true,
-           padding: '0 0 20 0'
+           title: gettext('TLS Domain Policy')
        });
 
        me.items = [ tlsSettings, tlsDomains ];