]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
subscription/summary/backup: stop setting the background color
authorStefan Sterz <s.sterz@proxmox.com>
Wed, 8 Mar 2023 16:36:56 +0000 (17:36 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 8 Mar 2023 16:49:19 +0000 (17:49 +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 these elements are
white already anyway, so just remove them here.

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
src/node/APT.js
src/window/AddTotp.js
src/window/DiskSmart.js
src/window/PackageVersions.js

index 2e5a77618c7a1efebd70d8b4c693b86a1c4ad02c..739aaf3429aca38621ef250347f506b573aa118a 100644 (file)
@@ -116,7 +116,6 @@ Ext.define('Proxmox.node.APT', {
            let view = Ext.createWidget('component', {
                autoScroll: true,
                style: {
-                   'background-color': 'white',
                    'white-space': 'pre',
                    'font-family': 'monospace',
                    padding: '5px',
index bdb482625754f5e42e1699b85b5daaa9af0fbf26..080b361fc998897d48081979d2fabd6a39392055 100644 (file)
@@ -224,7 +224,6 @@ Ext.define('Proxmox.window.AddTotp', {
                        visible: '{!secretEmpty}',
                    },
                    style: {
-                       'background-color': 'white',
                        'margin-left': 'auto',
                        'margin-right': 'auto',
                        padding: '5px',
index 3824175f0831e83d818a20c4722a56eefadd65a8..9096fec3e664dc2ff284a2361ddf271e3af06303 100644 (file)
@@ -74,7 +74,6 @@ Ext.define('Proxmox.window.DiskSmart', {
            autoScroll: true,
            padding: 5,
            style: {
-               'background-color': 'white',
                'white-space': 'pre',
                'font-family': 'monospace',
            },
index e79d29f572afad1e2eadf75686a87a7fb8e6829c..aaa1372ee0e6937b94f0919bad5433e27ef91fcb 100644 (file)
@@ -45,7 +45,6 @@ Ext.define('Proxmox.window.PackageVersions', {
                html: '{packageList}',
            },
            style: {
-               'background-color': 'white',
                'white-space': 'pre',
                'font-family': 'monospace',
            },