diff --git a/app/renderer/components/preferences/payment/ledgerBackup.js b/app/renderer/components/preferences/payment/ledgerBackup.js index 9c74eea180b..57f3bac547b 100644 --- a/app/renderer/components/preferences/payment/ledgerBackup.js +++ b/app/renderer/components/preferences/payment/ledgerBackup.js @@ -30,24 +30,20 @@ class LedgerBackupContent extends ImmutableComponent {
-
-
+
-
-
+
-
+
Brave Payments beta
-
-
+
+
- +
{ this.props.ledgerData.get('created') && this.enabled - ?
- - + ? : null } @@ -187,4 +215,56 @@ class PaymentsTab extends ImmutableComponent { } } +const styles = StyleSheet.create({ + paymentsContainer: { + position: 'relative', + overflowX: 'hidden', + width: '805px' + }, + advancedSettingsWrapper: { + textAlign: 'right', + marginRight: '15px', + marginBottom: '7.5px', + position: 'relative', + left: '3px' + }, + button: { + minWidth: '235px' + }, + titleBar: { + overflow: 'hidden', + display: 'flex', + alignItems: 'center' + }, + paymentsSwitches: { + display: 'flex' + }, + switchWrap: { + display: 'flex', + alignItems: 'center', + width: paymentStyles.width.tableCell + }, + switchControl: { + paddingTop: 0, + paddingBottom: 0 + }, + autoSuggestSwitch: { + position: 'relative', + left: '-5px' + }, + moreInfo: { + fontWeight: 'bold', + fontSize: paymentStyles.font.regular, + color: globalStyles.color.gray + }, + moreInfoBtnSuggest: { + marginLeft: '7px', + cursor: 'pointer', + textDecoration: 'none' + }, + label: { + fontWeight: 'bold' + } +}) + module.exports = PaymentsTab diff --git a/less/about/preferences.less b/less/about/preferences.less index 48ea3e80ae4..827cbd77be9 100644 --- a/less/about/preferences.less +++ b/less/about/preferences.less @@ -301,10 +301,6 @@ table.sortableTable { @walletBarItemMargin: 12px; @walletBarPadding: @walletBarItemMargin * 1.5; - position: relative; - overflow-x: hidden; - width: 805px; - // General properties on about:preferences#payments. // Make sure any change here could cause unexpected regressions. a { @@ -401,63 +397,22 @@ table.sortableTable { } } - .advancedSettingsWrapper { - // cf: .hideExcludedSites - @margin-bottom: @walletBarMargin / 2; - - text-align: right; - margin-right: @walletBarPadding; - margin-bottom: @margin-bottom; - - // align the button with .autoSuggestSwitch - position: relative; - left: 3px; - - button { - min-width: 235px; // PR #6287 - } - } - // This defines the styling of the title row (1st) on about:preferences#payments .titleBar { - overflow: hidden; - display: flex; - align-items: center; - .paymentsSwitches { - display: flex; .enablePaymentsSwitch, .autoSuggestSwitch { - display: flex; - align-items: center; - width: @walletBarTableData; - .settingItem .switchControl { - padding-top: 0; - padding-bottom: 0; - } + .settingItem span, .moreInfoBtn { - font-weight: bold; - font-size: @fontSize; - color: @gray; - } - - label { - font-weight: bold; } } .autoSuggestSwitch { - position: relative; - left: -5px; // .prefTabContainer .switchControl - .moreInfoBtn { - margin-left: 7px; - cursor: pointer; - text-decoration: none; } } }