ui: backup view: add scrolling overflow handler for the toolbar

As we got reports that some buttons get cut-off on resolutions close
to our minimal 720p one, especially if the "guest not in backup" jobs
hint is shown.

Link: https://forum.proxmox.com/threads/120714/
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
 [ T: resolve merge conflict and reword commit message ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Dominik Csapak 2023-01-18 15:35:20 +01:00 committed by Thomas Lamprecht
parent 38e79438f7
commit cc911f63aa

View File

@ -740,7 +740,11 @@ Ext.define('PVE.dc.BackupView', {
viewConfig: { viewConfig: {
trackOver: false, trackOver: false,
}, },
tbar: [ dockedItems: [{
xtype: 'toolbar',
overflowHandler: 'scroller',
dock: 'top',
items: [
{ {
text: gettext('Add'), text: gettext('Add'),
handler: function() { handler: function() {
@ -775,6 +779,7 @@ Ext.define('PVE.dc.BackupView', {
}, },
}, },
], ],
}],
columns: [ columns: [
{ {
header: gettext('Enabled'), header: gettext('Enabled'),