From 5e9eb2456cd8842e389186e20d37dd8c11c46404 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 30 Jun 2021 21:46:10 +0200 Subject: [PATCH] node: repos: increase width of add-repo window + style cleanup We have some longer descriptions so the default width looks crammed. Also, avoid a intermediate variable which is only used once without any change. Signed-off-by: Thomas Lamprecht --- src/node/APTRepositories.js | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/node/APTRepositories.js b/src/node/APTRepositories.js index 1597fb6..9995550 100644 --- a/src/node/APTRepositories.js +++ b/src/node/APTRepositories.js @@ -23,6 +23,7 @@ Ext.define('Proxmox.window.APTRepositoryAdd', { isAdd: true, subject: gettext('Repository'), + width: 600, initComponent: function() { let me = this; @@ -86,14 +87,12 @@ Ext.define('Proxmox.window.APTRepositoryAdd', { repoSelector.setValue(me.repoInfo[0].handle); - let items = [ - repoSelector, - description, - status, - ]; - Ext.apply(me, { - items: items, + items: [ + repoSelector, + description, + status, + ], repoSelector: repoSelector, });