]> git.proxmox.com Git - pmg-gui.git/commitdiff
subscription: remove hard-coded white background
authorStefan Sterz <s.sterz@proxmox.com>
Thu, 9 Mar 2023 08:01:05 +0000 (09:01 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 15 Mar 2023 14:38:54 +0000 (15:38 +0100)
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@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
Tested-by:  Dominik Csapak <d.csapak@proxmox.com>
js/Subscription.js

index 8d3bc8073e959e6e8137b21c17430da962084fdf..2293cdb0ea036dbcf1d62fb166c46031c3ae2b42 100644 (file)
@@ -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',