Skip to content

fix(web): remove extra bottom gap on Files-changed tab#22

Merged
dastratakos merged 1 commit into
mainfrom
dastratakos/fix-files-changed-bottom-gap
May 4, 2026
Merged

fix(web): remove extra bottom gap on Files-changed tab#22
dastratakos merged 1 commit into
mainfrom
dastratakos/fix-files-changed-bottom-gap

Conversation

@dastratakos

@dastratakos dastratakos commented May 4, 2026

Copy link
Copy Markdown
Contributor

Summary

The PR layout wrapper had pb-16 (64px) of bottom padding, which let users scroll past the last file into empty space on the Files-changed tab. The 16px from SidebarLayout's <main> py-4 already provides a small visual margin at the bottom, so the document now ends just below the last file.

Changes

  • Drop pb-16 from the inner content wrapper in packages/web/src/routes/pull-request-layout.tsx.

Testing

  • pnpm typecheck, pnpm lint, pnpm test (124 tests) all pass.

Open in Stage

The 64px pb-16 on the PR layout wrapper let users scroll past the last
file into empty space. The 16px from SidebarLayout's main py-4 already
provides a small visual margin at the bottom.
@dastratakos dastratakos marked this pull request as ready for review May 4, 2026 05:42
@dastratakos dastratakos merged commit 59ba332 into main May 4, 2026
4 checks passed
@dastratakos dastratakos deleted the dastratakos/fix-files-changed-bottom-gap branch May 4, 2026 05:42

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 0ec6552. Configure here.

return (
<div className="flex flex-1 flex-col" style={layoutStyle}>
<div className="flex-1 px-6 pt-6 pb-16 lg:px-8">
<div className="flex-1 px-6 pt-6 lg:px-8">

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Chapters tab loses all bottom padding unintentionally

Medium Severity

Removing pb-16 from this wrapper fixes the Files tab but also removes all bottom padding from the Chapters tab. The PR justification that SidebarLayout's py-4 provides sufficient margin only applies to the Files tab — the Chapters tab (ChaptersIndexPage / ChaptersList) renders directly into the Outlet without SidebarLayout, so its last chapter entry now sits flush against the container bottom with no visual breathing room.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 0ec6552. Configure here.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request modifies the PullRequestLayout component by removing the bottom padding (pb-16) from the main content container. I have no feedback to provide as there are no review comments and the change is a straightforward UI adjustment.

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.

1 participant