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

Hyperlink tooltip displayed over pop-up #3

Open
manyfew opened this issue Nov 4, 2017 · 4 comments
Open

Hyperlink tooltip displayed over pop-up #3

manyfew opened this issue Nov 4, 2017 · 4 comments

Comments

@manyfew
Copy link

manyfew commented Nov 4, 2017

Hi, first and foremost, I've just discovered LiuChan and I'm loving it. I've recommended it on Chinese-Forums (view thread) and I feel is so damn good I'm switching to Chrome, finally.

I've been using it all morning and noticed a small issue with hyperlink tooltips, see the screenshot below:

tooltip problem

As I hover the mouse over the Chinese text on certain hyperlinks, the tooltip obstructs the top of the pop-up which, as in this example, can be a problem.

If for technical reasons this cannot be addressed, a simple solution would be to offset the pop-up a little bit so that it appears below the tooltip.

Thank you!

@Paperfeed
Copy link
Owner

Paperfeed commented Nov 4, 2017 via email

@manyfew
Copy link
Author

manyfew commented Nov 4, 2017

I just noticed there's a keyboard shortcut to shift the pop-up down (Y), but the pop-up moves back near the mouse pointer once it moves. Technically the pop-up and the tooltip are both a form of pop-up, so trying to display both on the same spot is never going to work--either one will try to be on top. IMO the only sensible solution is to detect the extent of the tooltip and ensure the pop-up is display below the tooltip. If that's not possible, then perhaps allowing the pop-up to appear at a fixed donward offset from the default position would work well, since most tooltips are one-liners. In the rare event of a multi-line tooltip, users can temporarily hit Y a couple of times to get the pop-up into view.

Thanks!

@Paperfeed
Copy link
Owner

There's code in that should lower the popup if it's a hyperlink.

Please send me any edge cases where it's not working correctly (URL's and how to reproduce the bug), thanks!

@manyfew
Copy link
Author

manyfew commented Dec 8, 2017

Just tested and it's working well. Will report here if I find any edge cases, thanks.

The tooltip still covers a bit of the pop-up's edge at the top, maybe this is intentional i.e. to make the tooltip more obvious? At least it doesn't cover the text, which was the main issue :)

clipping

Here's the link to the above page:

https://detail.tmall.com/item.htm?id=45668678310&ns=1&abbucket=3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants