[pmg-devel] [PATCH pmg-gui v1 3/6] subscription: remove hard-coded white background

Stefan Sterz s.sterz at proxmox.com
Thu Mar 9 09:01:05 CET 2023


setting the background color in js code adds that property as a style
attribute to the element. that makes it hard to alter later via css
and makes it hard to dynamically change the color e.g. if we want to
add different themes. the background color for this element is white
already anyway, so just remove them here.

Signed-off-by: Stefan Sterz <s.sterz at proxmox.com>
---
 js/Subscription.js | 1 -
 1 file changed, 1 deletion(-)

diff --git a/js/Subscription.js b/js/Subscription.js
index 8d3bc80..2293cdb 100644
--- a/js/Subscription.js
+++ b/js/Subscription.js
@@ -41,7 +41,6 @@ Ext.define('PMG.Subscription', {
 	    itemId: 'system-report-view',
 	    scrollable: true,
 	    style: {
-		'background-color': 'white',
 		'white-space': 'pre',
 		'font-family': 'monospace',
 		padding: '5px',
-- 
2.30.2





More information about the pmg-devel mailing list