layer5 icon indicating copy to clipboard operation
layer5 copied to clipboard

[UI] Handbook Table of Contents links are clipped on mobile viewports

Open Rabia-Ghafoor opened this issue 2 weeks ago • 6 comments

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:

  1. Open a Community Handbook article.
  2. Switch to a mobile viewport (375 × 812px).
  3. Expand the Table of Contents.
  4. 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)
Screenshot 2026-11-14 at 5 32 58 PM

Rabia-Ghafoor avatar Nov 14 '26 22:11 Rabia-Ghafoor

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?

jay23606 avatar Nov 14 '26 23:11 jay23606

Thanks much for jumping in and volunteering. In an effort to help guarantee your success in undertaking assignment of the issue, will you:

  1. Confirm that you are able to build the project, specifically, the components necessary to resolve this issue.
  2. Confirm the approach you intend to take to resolve the issue.

yi-nuo426 avatar Nov 15 '26 00:11 yi-nuo426

@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...

V3DxNT avatar Nov 15 '26 13:11 V3DxNT

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?

nanjundachitra100-del avatar Nov 15 '26 15:11 nanjundachitra100-del

@Rabia-Ghafoor cab i work on this one

MAYANKSHARMA01010 avatar Nov 15 '26 16:11 MAYANKSHARMA01010

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

Rabia-Ghafoor avatar Nov 15 '26 16:11 Rabia-Ghafoor