Commit bac31ffe authored by ioedeveloper's avatar ioedeveloper

Align checkbox and label

parent 28e26d57
...@@ -171,9 +171,9 @@ class Terminal extends Plugin { ...@@ -171,9 +171,9 @@ class Terminal extends Plugin {
</div> </div>
${self._view.pendingTxCount} ${self._view.pendingTxCount}
<div class=${css.verticalLine}></div> <div class=${css.verticalLine}></div>
<div class="mx-2 d-flex pb-1 align-items-center ${css.listenOnNetwork} custom-control custom-checkbox"> <div class="pt-1 h-80 mx-3 align-items-center ${css.listenOnNetwork} custom-control custom-checkbox">
<input <input
class="pb-0 form-check-input custom-control-input" class="custom-control-input"
id="listenNetworkCheck" id="listenNetworkCheck"
onchange=${listenOnNetwork} onchange=${listenOnNetwork}
type="checkbox" type="checkbox"
......
...@@ -57,7 +57,7 @@ module.exports = class SettingsTab extends ViewPlugin { ...@@ -57,7 +57,7 @@ module.exports = class SettingsTab extends ViewPlugin {
if (themes) { if (themes) {
return yo`<div class="card-text themes-container"> return yo`<div class="card-text themes-container">
${themes.map((aTheme) => { ${themes.map((aTheme) => {
let el = yo`<div class="radio custom-control custom-radio ${css.frow} form-check ${css.crow}"> let el = yo`<div class="radio custom-control custom-radio mb-1 form-check ${css.crow}">
<input type="radio" onchange=${event => { onswitchTheme(event, aTheme.name) }} class="align-middle custom-control-input" name="theme" id="${aTheme.name}" data-id="settingsTabTheme${aTheme.name}"> <input type="radio" onchange=${event => { onswitchTheme(event, aTheme.name) }} class="align-middle custom-control-input" name="theme" id="${aTheme.name}" data-id="settingsTabTheme${aTheme.name}">
<label class="form-check-label custom-control-label" data-id="settingsTabThemeLabel${aTheme.name}" for="${aTheme.name}">${aTheme.name} (${aTheme.quality})</label> <label class="form-check-label custom-control-label" data-id="settingsTabThemeLabel${aTheme.name}" for="${aTheme.name}">${aTheme.name} (${aTheme.quality})</label>
</div>` </div>`
...@@ -117,19 +117,19 @@ module.exports = class SettingsTab extends ViewPlugin { ...@@ -117,19 +117,19 @@ module.exports = class SettingsTab extends ViewPlugin {
<div class="${css.info} border-top"> <div class="${css.info} border-top">
<div class="card-body"> <div class="card-body">
<h6 class="${css.title} card-title">General settings</h6> <h6 class="${css.title} card-title">General settings</h6>
<div class="mt-2 custom-control custom-checkbox ${css.frow}"> <div class="mt-2 custom-control custom-checkbox mb-1">
${this._view.generateContractMetadata} ${this._view.generateContractMetadata}
${this._view.generateContractMetadataLabel} ${this._view.generateContractMetadataLabel}
</div> </div>
<div class="fmt-2 custom-control custom-checkbox ${css.frow}"> <div class="fmt-2 custom-control custom-checkbox mb-1">
${this._view.optionVM} ${this._view.optionVM}
${this._view.optionVMLabel} ${this._view.optionVMLabel}
</div> </div>
<div class="mt-2 custom-control custom-checkbox ${css.frow}"> <div class="mt-2 custom-control custom-checkbox mb-1">
${this._view.textWrap} ${this._view.textWrap}
${this._view.textWrapLabel} ${this._view.textWrapLabel}
</div> </div>
<div class="custom-control custom-checkbox ${css.frow}"> <div class="custom-control custom-checkbox mb-1">
${this._view.personal}> ${this._view.personal}>
${this._view.personalLabel} ${this._view.personalLabel}
</div> </div>
......
...@@ -5,11 +5,8 @@ import * as packageJson from '../../../../../package.json' ...@@ -5,11 +5,8 @@ import * as packageJson from '../../../../../package.json'
import yo from 'yo-yo' import yo from 'yo-yo'
const themes = [ const themes = [
{name: 'Dark', quality: 'dark', url: 'https://res.cloudinary.com/lianahus/raw/upload/v1597755272/remix-themes/PR365/remix-dark_xbkjf1.css'}, {name: 'Dark', quality: 'dark', url: 'https://res.cloudinary.com/lianahus/raw/upload/v1597918237/remix-themes/PR365/remix-dark_tvx1s2.css'},
{name: 'Light', quality: 'light', url: 'https://res.cloudinary.com/lianahus/raw/upload/v1597755272/remix-themes/PR365/remix-light_nmjpo9.css'}, {name: 'Light', quality: 'light', url: 'https://res.cloudinary.com/lianahus/raw/upload/v1597918237/remix-themes/PR365/remix-light_powaqg.css'},
{name: 'Midcentury', quality: 'light', url: 'https://res.cloudinary.com/lianahus/raw/upload/v1597755272/remix-themes/PR365/remix-midcentury_mze7mq.css'},
{name: 'BackToBlack', quality: 'dark', url: 'https://res.cloudinary.com/lianahus/raw/upload/v1597755272/remix-themes/PR365/remix-black_fftgak.css'},
{name: 'Candy', quality: 'light', url: 'https://res.cloudinary.com/lianahus/raw/upload/v1597755272/remix-themes/PR365/remix-candy_xlto9t.css'},
{name: 'Cerulean', quality: 'light', url: 'https://bootswatch.com/4/cerulean/bootstrap.min.css'}, {name: 'Cerulean', quality: 'light', url: 'https://bootswatch.com/4/cerulean/bootstrap.min.css'},
{name: 'Flatly', quality: 'light', url: 'https://bootswatch.com/4/flatly/bootstrap.min.css'}, {name: 'Flatly', quality: 'light', url: 'https://bootswatch.com/4/flatly/bootstrap.min.css'},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment