all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Samuel Rufinatscha <s.rufinatscha@proxmox.com>
To: Dominik Csapak <d.csapak@proxmox.com>, pbs-devel@lists.proxmox.com
Subject: Re: [PATCH widget-toolkit] confirm remove dialog: improve layout for larger fields/components
Date: Wed, 29 Apr 2026 13:04:48 +0200	[thread overview]
Message-ID: <3c148d5c-64db-4908-aef4-701497486558@proxmox.com> (raw)
In-Reply-To: <20260429101328.1651618-1-d.csapak@proxmox.com>

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>





      parent reply	other threads:[~2026-04-29 11:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3c148d5c-64db-4908-aef4-701497486558@proxmox.com \
    --to=s.rufinatscha@proxmox.com \
    --cc=d.csapak@proxmox.com \
    --cc=pbs-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal