Page MenuHomePhabricator

[Explorer] fix copy address issue
ClosedPublic

Authored by johnkuney on Jan 30 2023, 21:23.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC1d770f3a3338: [Explorer] fix copy address issue
Summary

On any address page, the copy button was adding some extra spacing. Fixed by removing some unecessary if rendering

Test Plan

run the app and see if the copy address button works properly

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Fabien requested changes to this revision.Feb 5 2023, 10:15
Fabien added a subscriber: Fabien.
Fabien added inline comments.
web/explorer/explorer-server/templates/pages/address.html
10 ↗(On Diff #37761)

It's indeed fixing the copy spacing issues, but it's also removing a feature since it won't display the etoken address anymore.
This is confusing as a search for an etoken address now returns an ecash address, which is unexpected.

161 ↗(On Diff #37761)

That's an unrelated change

This revision now requires changes to proceed.Feb 5 2023, 10:15

reverting removing the if logic as it removed some functionaility. Trying adjusting the code spacing

i tried adjusting the spacing in the code that is causing this but the linter wont allow it...

web/explorer/explorer-server/templates/pages/address.html
161 ↗(On Diff #37761)

I believe that was an auto format change...

Move the if logic out of the h2 element

This revision is now accepted and ready to land.Feb 7 2023, 18:50
This revision was automatically updated to reflect the committed changes.