-
Notifications
You must be signed in to change notification settings - Fork 975
Conversation
@@ -58,35 +58,6 @@ | |||
overflow: hidden; | |||
} | |||
} | |||
|
|||
.qrcodeOverlay { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.qrcodeOverlay
was moved under #bitcoinDashboard
. Code which is not specific to the general overlay, if any other, should be moved to a proper place.
@@ -13,33 +13,6 @@ body { | |||
display: none !important; /* for testing/debug only */ | |||
} | |||
|
|||
#paymentsSwitches { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved under .titleBar
@@ -69,12 +42,6 @@ body { | |||
display: inline-block; | |||
} | |||
|
|||
.bitcoinQRTitle { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved under .qrcodeOverlay .dialog-body
@@ -516,30 +483,6 @@ table.sortableTable { | |||
} | |||
} | |||
|
|||
.paymentsMessage { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved under #paymentsContainer
@@ -563,13 +506,6 @@ table.sortableTable { | |||
text-align: left; | |||
} | |||
|
|||
span.paymentHistoryButton.browserButton { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved under .walletBar .settingsList .settingItem
line-height: 1.3em; | ||
margin: 0; | ||
|
||
&.subTitle { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.settingsListSubTitle
was replaced with .settingsListTitle .subTitle
, which can be more easily maintained.
margin: 0 auto; | ||
} | ||
|
||
.dialog-header { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because any modal creates .dialog-header, .dialog-body, .dialog-footer, they should be set inside it, whether they have properties or not. This will work for a guide for devs and help avoiding unexpected regressions.
@@ -1299,7 +1301,7 @@ class PaymentsTab extends ImmutableComponent { | |||
<span className='sectionTitle'>Brave Payments</span> | |||
<span className='sectionSubTitle'>beta</span> | |||
</div> | |||
<div className='pull-left' id='paymentsSwitches'> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed pull-left
as flexbox model was applied.
@luixxiul let me know when this is ready for review 😄 I can test it locally on Mac and Windows to make sure it works great |
OK @luixxiul- I got a chance to review, most everything looks good 😄
|
Thanks @bsclifton for reviewing! I'm fixing both :-) |
1. Refactored about:preferences#payments (titleBar and walletBar) - Partly addresses #5494 2. Applied vertical-top to the right element - Fixes #5962 3. Refactored dialog on about:preferences#payments (l10n) - Closes #6007 4. Refactored Brave wallet modal dialog (part 1) - Fixes #5785 based on https://github.com/luixxiul/browser-laptop/commit/2327e9eca53eb4a637dd4c3e3a2a1d1f613c2fbc 5. Replaced the button on the modal dialog with the SVG icon Auditors: @bradleyrichter @bsclifton Test Plan 1: 1. Make sure paymentsMessage and walletBar appears at the same place by toggling the switch off/on 2. Set the toggle to on 3. Make sure every button in titleBar and walletBar works 4. Make sure height of the fund select box and account balance box is equal 5. Make sure the loading message and the question mark is aligned center 6. Make sure no button label is wrapped Test Plan 2: make sure the row of the ledger table on about:payments is aligned horizontally Test Plan 3: 1. Disable Coinbase via VPN 2. Make sure every button on the dialog on about:preferences#payments works Test Plan 4: 1. Disable Coinbase via VPN 2. Make sure the grey footer no longer appears on the Add funds dialog Test Plan 5: 1. Make sure the top right button on the modal dialog works
LGTM! 😄 @jkup, I know you're in the ledger code now- did you want to try this out too? If so (and it looks good), let's merge it 😄 |
@luixxiul if you do fix the button alignment for #6039 (comment), can you please do as a follow-up (in a new PR)? thanks 😄 |
@bsclifton thanks for reviewing! I will address it with the next PR (here is the plan: #6009 (comment)) |
Merging! Thanks, Suguru! 😄 |
Resolves #7501 #7380 #6364 Auditors: @bsclifton @cezaraugusto Test plan: - everything should work the same as was before the chage
git rebase -i
to squash commits (if needed).I created the follow-up of this PR: #6047
Auditors: @bradleyrichter
Test Plan:
As I restyled about:preferences#payments again with #6047, please test just these two for this PR: