[UI] Handbook Table of Contents links are clipped on mobile viewports
Description
On the [Layer5 Community Handbook](https://layer5.io/community/handbook/code-of-conduct), longer Table of Contents (TOC) links are clipped on mobile viewports.
At a screen resolution of 375 × 812px, the "GitHub Organization Membership" link extends beyond the visible container, making part of the text unreadable.
This issue was observed in the local development environment with the TOC expanded.
Steps to Reproduce:
- Open a Community Handbook article.
- Switch to a mobile viewport (375 × 812px).
- Expand the Table of Contents.
- Observe that longer navigation links are cut off.
Expected Behavior
All TOC links should remain fully visible and readable across mobile screen sizes. Longer text should wrap appropriately without overflowing or being clipped by its container.
Screenshots
Screenshot attached showing the clipped "GitHub Organization Membership" link at 375 × 812px.
Environment:
- Host OS: macOS
- Browser: Brave (DevTools responsive mode)
- Viewport: 375 × 812px
- Environment: Local development (
localhost:8001)
I'd like to take this one. My guess is the fix belongs in the handbook TOC component's styles, where long link text needs to wrap (overflow-wrap or min-width adjustments) instead of being clipped. I'd check it by opening a handbook article at 375 × 812 with the TOC expanded and confirming that "GitHub Organization Membership" and the other long entries show in full. Could you assign it to me?
Thanks much for jumping in and volunteering. In an effort to help guarantee your success in undertaking assignment of the issue, will you:
- Confirm that you are able to build the project, specifically, the components necessary to resolve this issue.
- Confirm the approach you intend to take to resolve the issue.
@yi-nuo426 I have completed all of my previous assigned issues, I am looking forward to new work! Could I be assigned this one? Thank you for the same...
Hi! I'd also be interested in working on this issue.
My approach would be to locate the Handbook's Table of Contents component and inspect its responsive styles. I'd check which container or CSS property is clipping longer links, then adjust the text-wrapping and width behavior so that all TOC entries remain readable on mobile screens.
I'll also test the change at 375 × 812px and a few other viewport sizes to ensure there is no overflow or regression.
Could you let me know if this issue is still available?
@Rabia-Ghafoor cab i work on this one
Hi @MAYANKSHARMA01010, I don't think i have the permissions to assign this issue to you, even though I opened it, but looks like you were already assigned by @PARTH-TUSSLE, so you should be good to start working on it