public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH widget-toolkit] confirm remove dialog: improve layout for larger fields/components
@ 2026-04-29 10:12 Dominik Csapak
  2026-04-29 11:03 ` applied: " Thomas Lamprecht
  2026-04-29 11:04 ` Samuel Rufinatscha
  0 siblings, 2 replies; 3+ messages in thread
From: Dominik Csapak @ 2026-04-29 10:12 UTC (permalink / raw)
  To: pbs-devel

If there are larger fields e.g. in the additionalItems property, the
current layout configuration leads to cut-off text and fields.

To fix this, apply 'flex: 1' to the overall body and actual content
component (so they adapt their size) and use 'align: stretch' for the
content vbox (so the elements adapt to the size of the other content
elements).

with that, these larger elements (e.g. a hint box) will either shrink,
or wrap it's text.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
 src/window/ConfirmRemoveDialog.js | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/window/ConfirmRemoveDialog.js b/src/window/ConfirmRemoveDialog.js
index 94f1e84..5f76e47 100644
--- a/src/window/ConfirmRemoveDialog.js
+++ b/src/window/ConfirmRemoveDialog.js
@@ -133,6 +133,7 @@ Ext.define('Proxmox.window.ConfirmRemoveDialog', {
         }
 
         let body = {
+            flex: 1,
             xtype: 'container',
             layout: 'hbox',
             items: [
@@ -149,8 +150,12 @@ Ext.define('Proxmox.window.ConfirmRemoveDialog', {
         }
 
         let content = {
+            flex: 1,
             xtype: 'container',
-            layout: 'vbox',
+            layout: {
+                type: 'vbox',
+                align: 'stretch',
+            },
             items: [
                 {
                     xtype: 'component',
-- 
2.47.3





^ permalink raw reply related	[flat|nested] 3+ messages in thread

* applied: [PATCH widget-toolkit] confirm remove dialog: improve layout for larger fields/components
  2026-04-29 10:12 [PATCH widget-toolkit] confirm remove dialog: improve layout for larger fields/components Dominik Csapak
@ 2026-04-29 11:03 ` Thomas Lamprecht
  2026-04-29 11:04 ` Samuel Rufinatscha
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Lamprecht @ 2026-04-29 11:03 UTC (permalink / raw)
  To: pve-devel, pbs-devel, Dominik Csapak

On Wed, 29 Apr 2026 12:12:03 +0200, Dominik Csapak wrote:
> If there are larger fields e.g. in the additionalItems property, the
> current layout configuration leads to cut-off text and fields.
> 
> To fix this, apply 'flex: 1' to the overall body and actual content
> component (so they adapt their size) and use 'align: stretch' for the
> content vbox (so the elements adapt to the size of the other content
> elements).
> 
> [...]

Applied, thanks!

[1/1] confirm remove dialog: improve layout for larger fields/components
      commit: ec688ccdcee5c21518c8134bf7415f63a64c6e92




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH widget-toolkit] confirm remove dialog: improve layout for larger fields/components
  2026-04-29 10:12 [PATCH widget-toolkit] confirm remove dialog: improve layout for larger fields/components Dominik Csapak
  2026-04-29 11:03 ` applied: " Thomas Lamprecht
@ 2026-04-29 11:04 ` Samuel Rufinatscha
  1 sibling, 0 replies; 3+ messages in thread
From: Samuel Rufinatscha @ 2026-04-29 11:04 UTC (permalink / raw)
  To: Dominik Csapak, pbs-devel

On 4/29/26 12:11 PM, Dominik Csapak wrote:
> If there are larger fields e.g. in the additionalItems property, the
> current layout configuration leads to cut-off text and fields.
> 
> To fix this, apply 'flex: 1' to the overall body and actual content
> component (so they adapt their size) and use 'align: stretch' for the
> content vbox (so the elements adapt to the size of the other content
> elements).
> 
> with that, these larger elements (e.g. a hint box) will either shrink,
> or wrap it's text.
> 
> Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
> ---
>   src/window/ConfirmRemoveDialog.js | 7 ++++++-
>   1 file changed, 6 insertions(+), 1 deletion(-)
> 
> diff --git a/src/window/ConfirmRemoveDialog.js b/src/window/ConfirmRemoveDialog.js
> index 94f1e84..5f76e47 100644
> --- a/src/window/ConfirmRemoveDialog.js
> +++ b/src/window/ConfirmRemoveDialog.js
> @@ -133,6 +133,7 @@ Ext.define('Proxmox.window.ConfirmRemoveDialog', {
>           }
>   
>           let body = {
> +            flex: 1,
>               xtype: 'container',
>               layout: 'hbox',
>               items: [
> @@ -149,8 +150,12 @@ Ext.define('Proxmox.window.ConfirmRemoveDialog', {
>           }
>   
>           let content = {
> +            flex: 1,
>               xtype: 'container',
> -            layout: 'vbox',
> +            layout: {
> +                type: 'vbox',
> +                align: 'stretch',
> +            },
>               items: [
>                   {
>                       xtype: 'component',

Thanks for the patch, I tested it and it fixes the mentioned issue!

Reviewed-by: Samuel Rufinatscha <s.rufinatscha@proxmox.com>
Tested-by: Samuel Rufinatscha <s.rufinatscha@proxmox.com>





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-04-29 11:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-29 10:12 [PATCH widget-toolkit] confirm remove dialog: improve layout for larger fields/components Dominik Csapak
2026-04-29 11:03 ` applied: " Thomas Lamprecht
2026-04-29 11:04 ` Samuel Rufinatscha

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal