-
Notifications
You must be signed in to change notification settings - Fork 8
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
Long URL names overlap when wrapping #8
Comments
After some debugging, I discovered that there are potentially two causes for the overlapping text:
If the favicon doesn't exist, then the browser will render the 'title' text instead. Since the display property for 'item' is set to inline-block, the tab title is printed on a newline. However, since the vertical size of 'item' is fixed, this extra line overlaps with neighboring items. For the case of missing favicons, I was able to work around it by simply assigning one: if (!f) f = chrome.runtime.getURL('images/logo_16.png'); For the case of a broken favicon URL, I simply set the favicon 'title' to something non-printable (instead of the full URL): favicon.title = ' '; There may be better solutions to the second case, but this works well enough for me. Here is what the same tab list looks like now: |
I can confirm the bug (which has been annoying me as well for a while!) and the fix (thank you!). I will be PR'ing the fix soon. Stay tuned. |
I submitted the fix as PR 12 |
Well done! |
Awesome! Thank you! That's great news! |
That's amazing! Glad to have been of some help! |
Long URL names that exceed the width of the list item wrap awkwardly and often overlap with other list items. See the image below for an example:
The text was updated successfully, but these errors were encountered: