-
-
Notifications
You must be signed in to change notification settings - Fork 169
GitHub table of contents position issue when viewport is resized #102
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
Comments
Hi @mxmilkb! I'm guessing you mean this Firefox addon? I'm not sure what you mean by the position of the TOC not changing. If it ever goes off screen you can reset it using the g, then r hot keys. The popup is draggable, and it's position is set from the left side of the window. Do you think if we saved the distance from the right edge of the window that it would behave more as you would expect? |
Yes. As in, when the viewport width increases, the menu then overlaps part of the central content. Thanks for the tip! I've remapped these to c+i and c+a so as to avoid keys used by Vimium or Github. This changes the molehill of a problem from a minor practical issue to an aesthetic one :) Indeed, I was wondering if there was a way to have it position itself relative to the edge of the central content. |
Please try out the latest version. You'll likely have to reset the popup, but now it will maintain it's position based on the middle of the screen. That was a great idea! Thanks! |
That's great, thanks! The title of the popup does say 'null' though. Aside; when I restore the popup, it's position moves to just below the header, rather than the default position. |
The title can be modified through the Tampermonkey settings. Yeah, I made the default/reset position of the popup to be in the upper right under the header. Move as desired. |
Hmm, it appears to have ironed itself out now, I'm just seeing "Table of Contents" as the title now. I had thought I'd done a hard reload before.. |
I was able to duplicate the issue... I'll investigate soon. |
Ok, all fixed now! 🎉 |
I'm using the TreeStyleTabs addon sidebar. When I toggle the sidebar off, the position of the ToC doesn't change. This is also the case when the whole window is resized.
The text was updated successfully, but these errors were encountered: