bisq icon indicating copy to clipboard operation
bisq copied to clipboard

Fix clickable area of Enable Offers toggle button

Open Android-X13 opened this issue 1 year ago • 1 comments

Fixes #6263

Android-X13 avatar Jul 31 '22 23:07 Android-X13

Thanks for opening this pull request!

Please check out our contributor checklist and check if Travis or Codacy found any issues with your PR. Also make sure your commits are signed, and that you applied Bisq's code style and formatting.

A maintainer will add an is:priority label to your PR if it is up for compensation. Please see our Bisq Q1 2020 Update post for more details.

boring-cyborg[bot] avatar Jul 31 '22 23:07 boring-cyborg[bot]

@Android-X13 looks great. May I request an additional thing? Could you fix the clickable area of toggle buttons in DAO -> Facts & Figures -> Bsq Supply screen? There its possible to click on a toggle button and it toggles the one below.

image

jmacxx avatar Aug 13 '22 02:08 jmacxx

Hi @jmacxx, The author of the relevant code resorted to a hack in order to decrease the height of the switches and the vertical gap between them:

switch hack

The switches work best in their default height although the gaps increase quite enough which isn't what was wanted. Unless there's a better way to shrink the toggle's height symmetrically instead of doing hacks, my only solution to this would be to decrease the overlapping between them. But this would mean that their vertical gaps would increase a bit. And the clickable area still won't be ideal (but it will be better than now). If you still want this, should I push it in this branch?

Android-X13 avatar Aug 14 '22 00:08 Android-X13

the clickable area still won't be ideal (but it will be better than now).

Yes, I think an improvement would be worth it. To my mind it is similar enough to include in this branch. Thanks.

jmacxx avatar Aug 14 '22 18:08 jmacxx

Before:

Before

After:

After

The clickabe area is better now and the vertical distance between the switches isn't increased (too) much. It could be better but the gaps would also grow more.. I think the compromise between height and clickable areas is acceptable now

Android-X13 avatar Aug 14 '22 23:08 Android-X13

Kindly disregard my ramblings in the last comment above. The vertical gaps between toggles in BSQ SUPPLY do increase like shown, but their clickable area is ideal now.

Also, somehow I managed to screw up this PR. Really sorry about that. I'm new to git...

Android-X13 avatar Aug 15 '22 01:08 Android-X13