all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH manager] fix #3689: add gridhandle to firewall rules to indicate drag/drop
@ 2021-12-02 10:38 Dominik Csapak
  2021-12-02 18:19 ` [pve-devel] applied: " Thomas Lamprecht
  0 siblings, 1 reply; 2+ messages in thread
From: Dominik Csapak @ 2021-12-02 10:38 UTC (permalink / raw)
  To: pve-devel

dragHandle was copied from the BootOrderEdit.
Also increases the width by 23px to make space for it.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
 www/manager6/grid/FirewallRules.js | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/www/manager6/grid/FirewallRules.js b/www/manager6/grid/FirewallRules.js
index f3e02f6a..1fe13ea6 100644
--- a/www/manager6/grid/FirewallRules.js
+++ b/www/manager6/grid/FirewallRules.js
@@ -623,19 +623,19 @@ Ext.define('PVE.FirewallRules', {
 		// similar to xtype: 'rownumberer',
 		dataIndex: 'pos',
 		resizable: false,
-		minWidth: 42,
-		maxWidth: 60,
+		minWidth: 65,
+		maxWidth: 83,
 		flex: 1,
 		sortable: false,
-		align: 'right',
 		hideable: false,
 		menuDisabled: true,
 		renderer: function(value, metaData, record, rowIdx, colIdx) {
 		    metaData.tdCls = Ext.baseCSSPrefix + 'grid-cell-special';
+		    let dragHandle = "<i class='pve-grid-fa fa fa-fw fa-reorder cursor-move'></i>";
 		    if (value >= 0) {
-			return value;
+			return dragHandle + value;
 		    }
-		    return '';
+		    return dragHandle;
 		},
 	    },
 	    {
-- 
2.30.2





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

* [pve-devel] applied: [PATCH manager] fix #3689: add gridhandle to firewall rules to indicate drag/drop
  2021-12-02 10:38 [pve-devel] [PATCH manager] fix #3689: add gridhandle to firewall rules to indicate drag/drop Dominik Csapak
@ 2021-12-02 18:19 ` Thomas Lamprecht
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Lamprecht @ 2021-12-02 18:19 UTC (permalink / raw)
  To: Proxmox VE development discussion, Dominik Csapak

On 02.12.21 11:38, Dominik Csapak wrote:
> dragHandle was copied from the BootOrderEdit.
> Also increases the width by 23px to make space for it.
> 
> Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
> ---
>  www/manager6/grid/FirewallRules.js | 10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)
> 
>

yeah, I forgot and remembered that already like three times in the worst
moments, great to finally have it done!

applied, thanks!




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

end of thread, other threads:[~2021-12-02 18:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-02 10:38 [pve-devel] [PATCH manager] fix #3689: add gridhandle to firewall rules to indicate drag/drop Dominik Csapak
2021-12-02 18:19 ` [pve-devel] applied: " Thomas Lamprecht

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