Skip to content

[bug]: issue detail collapses to zero height below 1024px, only the properties rail renders #519

Closed

Description

@Ayaan2907

What happened

Sub-issue of #124, covering the second of the three remaining slices there, reading an issue and its comments on a phone. This is the mechanism behind that slice, in the same spirit as board.tsx having no breakpoints for the board slice.

It is not that the layout is cramped. Below lg the issue body renders at zero height, so the title, the description and every comment are unreachable. You get the properties rail and nothing else, on the full page and in the peek panel both.

Mechanism

apps/web/src/features/issues/issue-detail.tsx:288 is the container:

flex h-full min-h-0 flex-col lg:flex-row

Its two children:

  • issue-detail.tsx:289, the main column: min-h-0 min-w-0 flex-1 overflow-y-auto
  • issue-properties.tsx:138, the properties rail: flex w-full shrink-0 flex-col gap-0.5 border-border border-t p-3 lg:w-64 lg:border-t-0 lg:border-l

Below lg it stacks, but the container keeps a fixed h-full and the rail is shrink-0 at 746px, taller than the container on its own. The main column is flex-1 with min-h-0, which lets it shrink past its content, so it absorbs the whole deficit and settles at zero.

Measured on main at 4eb55e8, 390px viewport, against a throwaway issue with a short description:

child height scrollHeight
main column 0px 1792px
properties rail 746px 745px

Container height was 731px. The main column is overflow-y: auto at zero height, so the content is not scrolled off, it is unreachable. A real issue is several thousand px of content behind that same zero.

The stack itself was clearly intended, the rail carries w-full and border-t for exactly this case. The h-full plus shrink-0 plus min-h-0 combination is what defeats it.

Not only phones

Height left for the main column is the container height minus 746px:

  • phone, 731px container: 0px
  • landscape tablet, around 785px: about 37px
  • iPad portrait, around 1145px: a few hundred px, still stacked because it is below lg

Zero or near zero on every phone and landscape tablet.

The peek panel inherits it

IssuePeek renders the same IssueDetailView, so the panel shows only properties too. At 390px: flex-direction: column, main column 0px holding 1870px of content, rail 746px.

Worth flagging for whoever takes this: lg: is a viewport query, but IssueDetailView renders in two containers of very different widths, the full page and a panel 380px to 900px wide. A 640px peek on a 1000px window stacks and collapses as well. Container width is what actually matters here, not viewport width.

Three smaller things in the same area

These sit under the narrow layouts and touch targets wording in #124, and they are all in issue-peek.tsx:

  • clampWidth at line 27 is Math.max(MIN_WIDTH, Math.min(value, maxWidth())) with MIN_WIDTH = 380 and maxWidth() capped at 90vw. When 90vw is below 380 the floor beats the cap. At 390px it returns 380 and sets style="width: 380px" while max-w-[90vw] renders it at 351px. The two disagree, and the drag handle can never change the rendered width.
  • The resize handle at line 139 is w-1 ... touch-none, a 4px target that swallows swipes on touch.
  • modal={false} at line 86 with the panel at 90vw leaves a 39px live strip of the list behind it, no overlay and no scroll lock.

Whether the peek should be a side panel at all on a phone is a design call, not a bug, so I have left it alone. Editing on a phone is out of scope per #124 and nothing here touches it.

Proposed change

Below lg, make the root the single scroll container and let both children take their natural height, instead of a shrinkable flex-1 main column inside a fixed height box. Patched live in the browser to confirm, three declarations:

root:  overflow-y: auto
main:  flex: none
main:  overflow-y: visible

At 390px: main column 1818px, rail 746px, root scrolls 2563px over a 729px viewport, title and description visible immediately.

A regression test worth having: Playwright at 390x844, open an issue both by clicking a list row and by going to /issue/<identifier>, assert the title and description are visible without scrolling the properties out of the way.

#515 is in the same panel but unrelated, that one is the editor popover overflowing on desktop.

Screenshots

Captured against a throwaway issue, so there is nothing real in them.

Issue detail page at 390px, properties only.

Issue detail page at 390px, properties only

The peek panel at 390px, opened from a list row. Same collapse.

Peek panel at 390px, properties only

The same panel after the three declaration fix.

Peek panel at 390px after the fix

Investigation session d0ed9615-14d2-4df9-9bf2-89a6e628cc7e.

What you expected instead

The title, description and comments are readable on a narrow viewport, with the properties rail stacked below them rather than taking the whole screen.

Steps to reproduce

  1. Sign in to https://orbit.noveum.ai
  2. Narrow the browser to 390px wide, or open on a phone.
  3. Open any issue by going to /issue/<identifier>. Only STATUS, PRIORITY, ASSIGNEE and the rest of the properties render.
  4. Scroll to the bottom. The properties end at "Delete issue". The title, description and comments never appear.
  5. Now go to /my-issues, switch to List, and click any row to open the peek panel. Same result inside the panel.

Reproduces every time, on any issue, in light and dark. Also seen at 320px, 375px, 400px and 856px. Correct at 1024px and above.

Where did you see this

orbit.noveum.ai

Which part of Orbit

Issues, lists and boards

If this is a realtime problem

  • A "Reconnecting to live updates" banner appeared
  • More than one tab or browser was open
  • More than one user was in the workspace

Environment

- Orbit commit or version: `main` at `4eb55e8`
- Bun version (bun --version): not applicable, reproduced against production
- OS: macOS
- Browser: Chromium, 390px viewport

Logs, errors or screenshots

issue detail page, 390px viewport
  [data-testid="issue-detail"]   flex-direction: column   height 731px
  main column                    height 0px      scrollHeight 1792px
  properties rail                height 746px    scrollHeight 745px

peek panel, 390px viewport
  [data-testid="issue-detail"]   flex-direction: column
  main column                    height 0px      scrollHeight 1870px
  properties rail                height 746px
  peek inline style width        380px
  peek rendered width            351px   (max-w-[90vw] cap = 351px)
  list left uncovered            39px

peek panel after root overflow-y:auto, main flex:none, main overflow-y:visible
  main column                    height 1818px
  properties rail                height 746px
  root                           scrollHeight 2563px over clientHeight 729px

numbers come from a throwaway issue with a short description,
so the scrollHeight figures are small; a real issue is several thousand px

Before you submit

  • I searched the existing issues and this is not a duplicate
  • I can reproduce this consistently, or I have said how often it happens

Activity

  1. added
    bug
    needs triage
    on Oct 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugneeds triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions