Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link clickable area unexpectedly covers post clickable area when a long link goes over multiple lines #4468

Open
fin-w opened this issue May 24, 2024 · 0 comments
Labels

Comments

@fin-w
Copy link
Contributor

fin-w commented May 24, 2024

Detailed description

Some posts have long links in them, that cannot be broken in many places to put the following parts on a new line. As a result, links end up covering only a small part of the toot area (on the left, for left-aligned languages) but the area that can be clicked to open the link still extends all the way to the rightmost edge of the post. This means it is possible to click a part of the post, expecting to open the post itself, and instead the link opens.

I would fix this either by making the area where the link can be clicked ONLY cover the area where there is link text (only the link text can be clicked to open the link), or else force the link text go all the to the right edge of the post before breaking onto a new line, i.e. break by character rather than by word / string segment (again, essentially only the link text can be clicked to open the link, but this time links fill more horizontal space so there's not really any area where the user can click expecting to open the post).

In the example image, clicking on the red area will open the link rather than the post and this is not expected behaviour. Note that the pale green area (after the link ends) is not clickable.
Screenshot_20240524-160352_Tusky Test_1_1

Steps to reproduce the problem

  1. View post in a timeline
  2. Click within the post (within the red area), expecting to open the post itself

Debug information

Tusky Test 25.2-78b1fcb9

Device: motorola moto g(7) power
Fersiwn Android: 14
Fersiwn SDK: 34

Fersiwn: 4.0.15+hometown-1.1.1

@fin-w fin-w added the bug label May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant