public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH widget-toolkit 1/2] css: don't make full tags inline-block in the tree
@ 2022-11-21  7:53 Dominik Csapak
  2022-11-21  7:53 ` [pve-devel] [PATCH widget-toolkit 2/2] log/journal view: fix acces to me after destroying Dominik Csapak
  2022-11-21 11:16 ` [pve-devel] applied: [PATCH widget-toolkit 1/2] css: don't make full tags inline-block in the tree Thomas Lamprecht
  0 siblings, 2 replies; 4+ messages in thread
From: Dominik Csapak @ 2022-11-21  7:53 UTC (permalink / raw)
  To: pve-devel

when showing full tags in the tree as inline-block, the height is increased,
leading to unwanted 'wobble' when tags are added/removed

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
 src/css/ext6-pmx.css | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/css/ext6-pmx.css b/src/css/ext6-pmx.css
index 37cadde..b9bfb35 100644
--- a/src/css/ext6-pmx.css
+++ b/src/css/ext6-pmx.css
@@ -14,6 +14,11 @@
     display: inline-block;
 }
 
+.proxmox-tags-full .x-grid-cell-inner-treecolumn .proxmox-tag-light,
+.proxmox-tags-full .x-grid-cell-inner-treecolumn .proxmox-tag-dark {
+    display: inherit;
+}
+
 .x-boundlist-item > .proxmox-tag-light,
 .x-boundlist-item > .proxmox-tag-dark {
     line-height: 15px;
-- 
2.30.2





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

* [pve-devel] [PATCH widget-toolkit 2/2] log/journal view: fix acces to me after destroying
  2022-11-21  7:53 [pve-devel] [PATCH widget-toolkit 1/2] css: don't make full tags inline-block in the tree Dominik Csapak
@ 2022-11-21  7:53 ` Dominik Csapak
  2022-11-21  7:54   ` Dominik Csapak
  2022-11-21 11:16 ` [pve-devel] applied: [PATCH widget-toolkit 1/2] css: don't make full tags inline-block in the tree Thomas Lamprecht
  1 sibling, 1 reply; 4+ messages in thread
From: Dominik Csapak @ 2022-11-21  7:53 UTC (permalink / raw)
  To: pve-devel

it can happen that the view is destroyed during an api call,
so we should check if it's destroyed as the first thing in the
callback

if the view is destroyed, there is nothing we can do here, so simply
return

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
 src/panel/JournalView.js | 3 +++
 src/panel/LogView.js     | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/src/panel/JournalView.js b/src/panel/JournalView.js
index f3af36b..32c005a 100644
--- a/src/panel/JournalView.js
+++ b/src/panel/JournalView.js
@@ -143,6 +143,9 @@ Ext.define('Proxmox.panel.JournalView', {
 		waitMsgTarget: !livemode ? view : undefined,
 		method: 'GET',
 		success: function(response) {
+		    if (me.isDestroyed) {
+			return;
+		    }
 		    Proxmox.Utils.setErrorMask(me, false);
 		    let lines = response.result.data;
 		    me.updateView(lines, livemode, top);
diff --git a/src/panel/LogView.js b/src/panel/LogView.js
index dcbd002..44aa8e3 100644
--- a/src/panel/LogView.js
+++ b/src/panel/LogView.js
@@ -98,6 +98,9 @@ Ext.define('Proxmox.panel.LogView', {
 		params: viewModel.get('params'),
 		method: 'GET',
 		success: function(response) {
+		    if (me.isDestroyed) {
+			return;
+		    }
 		    Proxmox.Utils.setErrorMask(me, false);
 		    let total = response.result.total;
 		    let lines = [];
-- 
2.30.2





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

* Re: [pve-devel] [PATCH widget-toolkit 2/2] log/journal view: fix acces to me after destroying
  2022-11-21  7:53 ` [pve-devel] [PATCH widget-toolkit 2/2] log/journal view: fix acces to me after destroying Dominik Csapak
@ 2022-11-21  7:54   ` Dominik Csapak
  0 siblings, 0 replies; 4+ messages in thread
From: Dominik Csapak @ 2022-11-21  7:54 UTC (permalink / raw)
  To: pve-devel

argh... typo in subject:

s/acces/access/




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

* [pve-devel] applied: [PATCH widget-toolkit 1/2] css: don't make full tags inline-block in the tree
  2022-11-21  7:53 [pve-devel] [PATCH widget-toolkit 1/2] css: don't make full tags inline-block in the tree Dominik Csapak
  2022-11-21  7:53 ` [pve-devel] [PATCH widget-toolkit 2/2] log/journal view: fix acces to me after destroying Dominik Csapak
@ 2022-11-21 11:16 ` Thomas Lamprecht
  1 sibling, 0 replies; 4+ messages in thread
From: Thomas Lamprecht @ 2022-11-21 11:16 UTC (permalink / raw)
  To: Proxmox VE development discussion, Dominik Csapak

Am 21/11/2022 um 08:53 schrieb Dominik Csapak:
> when showing full tags in the tree as inline-block, the height is increased,
> leading to unwanted 'wobble' when tags are added/removed
> 
> Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
> ---
>  src/css/ext6-pmx.css | 5 +++++
>  1 file changed, 5 insertions(+)
> 
>

applied with typo in the subject of patch 2/2 fixed, thanks!




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

end of thread, other threads:[~2022-11-21 11:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-21  7:53 [pve-devel] [PATCH widget-toolkit 1/2] css: don't make full tags inline-block in the tree Dominik Csapak
2022-11-21  7:53 ` [pve-devel] [PATCH widget-toolkit 2/2] log/journal view: fix acces to me after destroying Dominik Csapak
2022-11-21  7:54   ` Dominik Csapak
2022-11-21 11:16 ` [pve-devel] applied: [PATCH widget-toolkit 1/2] css: don't make full tags inline-block in the tree Thomas Lamprecht

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