Commit Graph

2 Commits

Author SHA1 Message Date
Dominik Csapak
3a9037ba25 ui: fix align mode of two column container
'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@proxmox.com>
2024-06-12 15:54:21 +02:00
Dominik Csapak
9540e48c0f ui: add new container widget to layout two child widgets into two columns
The new pveTwoColumnContainer can show a widget on the start (left)
column and another one on the end (right) one, with a (default) flex
ratio of 1:2

This is helpful when wanting fields to align vertically in an input
panel that have different height, e.g., because of text wrapping.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
 [ TL: s/Widget/Column/;s/ratio/flex/ and expose starFlex ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2024-04-22 11:27:17 +02:00