Skip to content

BGDIINF_SB-2662: Various bugfixes on position popup#310

Merged
ltshb merged 8 commits intodevelopfrom
bug-BGDIINF_SB-2662-position-popup
Nov 29, 2022
Merged

BGDIINF_SB-2662: Various bugfixes on position popup#310
ltshb merged 8 commits intodevelopfrom
bug-BGDIINF_SB-2662-position-popup

Conversation

@ltshb
Copy link
Contributor

@ltshb ltshb commented Nov 28, 2022

Various bugfixes and improvements, see commits message for more details.

  • Added border to position css triangle, needed on light background to add more contrast
  • Fixed some error handling
  • Do not display qrcode on mobile display
  • Fixed long What3Words which pushed the copy button on a new line (see printscreen below)
    image
    Now the Whats3word is truncated with ellipsis, but you can still copy the whole address with the copy button. The position label space has been also reduced to let more space for the values. This reduced the risk of what3words truncate which now happens quite rarely.
    Here below is an example of a truncate what3words
    image

Test link

@github-actions github-actions bot added the bug label Nov 28, 2022
@ltshb ltshb changed the title BGDIINF_SB-2662: Do not display qrcode in position popup on mobile device BGDIINF_SB-2662: Various bugfixes on position popup Nov 28, 2022
@ltshb ltshb requested a review from pakb November 28, 2022 08:42
Copy link
Contributor

@pakb pakb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor issues with logging, but not big of a deal

This border is needed to increase contrast on hell background otherwise we
don't see the position triangle on light background.
For some unknown reason I had the `clipboard.writeText` that failed on rare
occasion while testing locally. This broke the application. Therefore I
added some error handling.
Removed the 8px gap between the qrcode and the share link in location popup.
Some what3words are long and cause the copy button to be pushed in a new line.
To avoid this and keep the copy button on the same line, we use the text overflow
ellipsis. To achieve this we also reduced the labels column width to a minimum
to get more space for the what3words. In case of long what3words the word
is now truncated with elipsis (...) but you can still copy the whole name using
the copy button. Most of the time the word is not truncated.
The copy buttons in the position popup where lightly overlapped, adding a small
gap between row fixed that issue.
@ltshb ltshb force-pushed the bug-BGDIINF_SB-2662-position-popup branch from 64e3e4b to d11a7b2 Compare November 29, 2022 11:49
@ltshb ltshb merged commit 9b54225 into develop Nov 29, 2022
@ltshb ltshb deleted the bug-BGDIINF_SB-2662-position-popup branch November 29, 2022 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants