Skip to content

Commit

Permalink
fix(config-ui): Remove config UI inline styles
Browse files Browse the repository at this point in the history
  • Loading branch information
symposion committed Apr 14, 2017
1 parent 74ca2cb commit 54edcfe
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions lib/modules/config-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ class ConfigMenu {
const col1 = Utils.buildHTML('td', params.title);
const col2 = Utils.buildHTML('td', this.makeOptionButton(params), { style: 'text-align:right;' });

return Utils.buildHTML('tr', col1 + col2, { style: 'border: 1px solid gray;' });
return Utils.buildHTML('tr', col1 + col2);
}

makeOptionButton(params) {
Expand Down Expand Up @@ -211,7 +211,6 @@ class ConfigMenu {
innerHtml: options.colTitles[2],
},
],
attrs: { style: 'line-height: 1;' },
},
{
tag: 'tr',
Expand All @@ -238,7 +237,6 @@ class ConfigMenu {
innerHtml: options.colTitles[3],
},
],
attrs: { style: 'line-height: 1;' },
},
{
tag: 'tr',
Expand All @@ -250,17 +248,16 @@ class ConfigMenu {
],
},
],
attrs: { style: 'width: 100%; text-align: center;' },
attrs: { style: 'text-align: center;' },
},
], attrs: { colspan: '2' },
},
], { style: 'border: 1px solid gray;' });
]);
}

writeMenu(msg) {
const parts = this.getMenuParts();
const content = Utils.buildHTML('table', parts.optionRows, {
style: 'width: 100%; font-size: 0.9em;',
class: 'shaped-config',
});
msg.addField('subheader', parts.title);
Expand Down

0 comments on commit 54edcfe

Please sign in to comment.