From 85e428a20f59d96adc57bf2ccf123ac5da5bac23 Mon Sep 17 00:00:00 2001 From: Suguru Hirahara Date: Thu, 17 Nov 2016 15:36:22 +0900 Subject: [PATCH] Refactor buttons on about:preferences#payments Fixes #4786 - Moved paddings and width in "whiteButton" to "wideButton" - Added "wideButton" to the advanced settings button on about:preferences#payments - Added font-size to the button - Added display:flex to footer of advanced settings - Added white-space:nowrap to "buttonCommon" (buttons will not be wrapped by default) Auditors: @jkup Test Plan: 1. Open about:preferences#payments 2. Make sure the font size of the two buttons "Add funds" and "Advanced Settings..." is equal 3. Click "Advanced Settings..." 4. Make sure the buttons on the footer are aligned center 5. Make sure each button is not wrapped --- js/about/preferences.js | 2 +- less/about/preferences.less | 49 ++++++++++++++++++++++--------------- less/button.less | 11 ++++----- 3 files changed, 35 insertions(+), 27 deletions(-) diff --git a/js/about/preferences.js b/js/about/preferences.js index eb3e3a7f36c..2b1d1faad29 100644 --- a/js/about/preferences.js +++ b/js/about/preferences.js @@ -1266,7 +1266,7 @@ class PaymentsTab extends ImmutableComponent { - { this.props.ledgerData.get('created') && this.enabled ?