all lists on 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

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 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