[pve-devel] [PATCH manager] ui: fix align mode of two column container

Dominik Csapak d.csapak at proxmox.com
Wed Apr 24 13:39:45 CEST 2024


'stretch' is most often the wrong value, as that will stretch
everything, to the height of the whole container, including fields.
That is not desirable, since fields look not good when stretched this
way (e.g. the controls are not correctly aligned).

To fix it, simply set it to 'begin'.

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
noticed that the 'zstd thread' field was strechted in the backup
advanced panel when using the german language...

 www/manager6/container/TwoColumnContainer.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/manager6/container/TwoColumnContainer.js b/www/manager6/container/TwoColumnContainer.js
index e8e5fca9..b7bf735a 100644
--- a/www/manager6/container/TwoColumnContainer.js
+++ b/www/manager6/container/TwoColumnContainer.js
@@ -10,7 +10,7 @@ Ext.define('PVE.container.TwoColumnContainer', {
 
     layout: {
 	type: 'hbox',
-	align: 'stretch',
+	align: 'begin',
     },
 
     // The default ratio of the start widget. It an be an integer or a floating point number
-- 
2.39.2





More information about the pve-devel mailing list