From f9a7d55d1461da33231e0c2f7d76f1e9d19ee968 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Mon, 5 Jul 2021 12:55:39 +0200 Subject: [PATCH] ui: dc/guests: avoid using
for layouting use a flex box with centered columns instead, that needs adding a div per row, but that's IMO actually making it more clear what a row is anyway. Signed-off-by: Thomas Lamprecht --- www/manager6/dc/Guests.js | 86 +++++++++++++++++++++++---------------- 1 file changed, 52 insertions(+), 34 deletions(-) diff --git a/www/manager6/dc/Guests.js b/www/manager6/dc/Guests.js index df233b6d..c17843e1 100644 --- a/www/manager6/dc/Guests.js +++ b/www/manager6/dc/Guests.js @@ -32,31 +32,40 @@ Ext.define('PVE.dc.Guests', { stopped: 0, template: 0, }, + cls: 'centered-flex-column', tpl: [ '

' + gettext("Virtual Machines") + '

', - '
', - ' ', - gettext('Running'), + '
', + '
', + ' ', + gettext('Running'), + '
', + '
{running}
', '
', - '
{running}

', '', - '
', - ' ', - gettext('Paused'), + '
', + '
', + ' ', + gettext('Paused'), + '
', + '
{paused}
', '
', - '
{paused}

', '', - '
', - ' ', - gettext('Stopped'), - '
', - '
{stopped}

', - '', + '
', '
', - ' ', - gettext('Templates'), + ' ', + gettext('Stopped'), + '
', + '
{stopped}
', + '
', + '', + '
', + '
', + ' ', + gettext('Templates'), + '
', + '
{template}
', '
', - '
{template}
', '
', ], }, @@ -68,31 +77,40 @@ Ext.define('PVE.dc.Guests', { stopped: 0, template: 0, }, + cls: 'centered-flex-column', tpl: [ '

' + gettext("LXC Container") + '

', - '
', - ' ', - gettext('Running'), + '
', + '
', + ' ', + gettext('Running'), + '
', + '
{running}
', '
', - '
{running}

', '', - '
', - ' ', - gettext('Paused'), + '
', + '
', + ' ', + gettext('Paused'), + '
', + '
{paused}
', '
', - '
{paused}

', '', - '
', - ' ', - gettext('Stopped'), - '
', - '
{stopped}

', - '', + '
', '
', - ' ', - gettext('Templates'), + ' ', + gettext('Stopped'), + '
', + '
{stopped}
', + '
', + '', + '
', + '
', + ' ', + gettext('Templates'), + '
', + '
{template}
', '
', - '
{template}
', '
', ], },