Skip to content

Conversation

@ctate
Copy link
Collaborator

@ctate ctate commented Oct 25, 2025

No description provided.

@vercel
Copy link
Contributor

vercel bot commented Oct 25, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
coding-agent-platform Ready Ready Preview Comment Oct 25, 2025 6:55am


{/* Diff Viewer */}
<div className="bg-card rounded-md border overflow-hidden h-[calc(100%-3rem)]">
<div className="bg-card md:rounded-md md:border overflow-hidden h-[calc(100%-41px)]">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<div className="bg-card md:rounded-md md:border overflow-hidden h-[calc(100%-41px)]">
<div className="bg-card md:rounded-md md:border overflow-hidden h-[calc(100%-44px)]">

The height calculation for the diff viewer appears to be incorrect. The file path bar is approximately 44px tall (pt-3: 12px + button: 24px + pb-2: 8px), but the diff viewer uses h-[calc(100%-41px)], which would cause it to overflow its container by 3px.

View Details

Analysis

Incorrect height calculation in mobile diff viewer causes 3px overflow

What fails: The diff viewer in TaskDetails mobile layout uses h-[calc(100%-41px)] but the file path bar above it is 44px tall (pt-3: 12px + button h-6: 24px + pb-2: 8px), causing the diff viewer to overflow its container by 3px and clip content with overflow-hidden.

How to reproduce:

  1. Open task details on a mobile viewport (md:hidden)
  2. Navigate to the code tab
  3. Open any file to display the diff viewer
  4. Observe that the bottom 3px of the diff viewer content may be clipped

Result: The diff viewer height calculation is 3px too small, causing content to overflow and be hidden by the overflow-hidden CSS property. When parent container is 1000px:

  • File path bar occupies: 44px
  • Diff viewer should occupy: 1000 - 44 = 956px
  • But it occupies: 1000 - 41 = 959px
  • Overflow: 3px (clipped by overflow-hidden)

Expected: The diff viewer should use h-[calc(100%-44px)] to properly account for the exact height of the file path bar, ensuring all content is visible without clipping.

Reference: This is a layout sizing bug in the mobile code view section of components/task-details.tsx where the calc() expression wasn't adjusted correctly when the layout was refactored.

@ctate ctate merged commit 1ed125c into main Oct 25, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants