You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you have a very long unbreakable heading in a page, the table of contents view (in the mobile sidebar) will not wrap it, and it will be scrollable off-screen.
I am not sure what the most desirable behavior here is, e.g. force wrapping (even in the middle of words), or making an ellipsis, or something else.
Coming back to this, I should have looked at your reproduction first. I do not get the behaviour you describe when I use the Insider version of Material but when I use the public version I get the same result as you do. This does seem to be an unintended divergence between the two versions to me.
I think I have spotted where the problem lies. In the toc-item partial in the public version, there is no span that attaches the .md-ellipsis class. That is present in the Insiders version. Will do a PR.
Context
No response
Bug description
If you have a very long unbreakable heading in a page, the table of contents view (in the mobile sidebar) will not wrap it, and it will be scrollable off-screen.
I am not sure what the most desirable behavior here is, e.g. force wrapping (even in the middle of words), or making an ellipsis, or something else.
Related links
Reproduction
9.4.8-long-headings-break-toc.zip
Steps to reproduce
Browser
No response
Before submitting
The text was updated successfully, but these errors were encountered: