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 <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-06-30 21:46:10 +02:00
parent 7f671fee58
commit 5e9eb2456c

View File

@ -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,
});