GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(web): right panel opens at half the window on wide screens by otavio · Pull Request #13734 · pingdotgg/t3code

Conversation

@otavio

@otavio otavio commented Sep 26, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

The right panel (browser, diff, files, terminal, etc.) always opened at a fixed 540px in a thread that had not been resized yet. On large monitors that is a thin strip, and because widths are remembered per thread (#11310), you had to drag it wider again in every new thread.

The panel now opens at half the viewport width, never smaller than the previous 540px. The existing max-width clamp still reserves room for the chat column, and threads that already have a saved width keep it. The pull-requests page already opened its panel at half the window, so this lines up with that.

Before / after (1920×1080 viewport, this PR's diff open in the panel)

Before: the panel opens at 540px, so diff lines wrap

before

After: the panel opens at 960px (half the window), so the same diff fits

after

Verification

  • vp test run apps/web/src/components/preview/PreviewPanelShell.test.ts (adds cases for the half-viewport default and the 540px floor)
  • vp lint on the touched files, apps/web typecheck
  • Checked in a dev build: on a 1920px viewport the inline panel measured 540px before and 960px after

Surfaces: the width only applies to the inline desktop/web panel. The sheet mode on narrow windows and mobile are unchanged.

Made by Claude Opus 5.5 in Claude Code (via T3 Code).

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:S 10-29 changed lines (additions + deletions). labels Sep 26, 2026
@macroscopeapp

macroscopeapp Bot commented Sep 26, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Not approved

Macroscope's review found this PR not approvable — The production preview panel now uses a viewport-dependent initial width instead of the fixed 540px default, changing the opening layout on wide screens. Existing saved widths and maximum-width constraints remain in place, and targeted tests cover the new calculation.

You can add or adjust custom eligibility rules. Learn more.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coderabbitai

coderabbitai Bot commented Sep 26, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

⚙️ Run configuration

Configuration used: Repository: pingdotgg/t3code/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 11999968-c907-45a0-9f80-edafb152d083

📥 Commits

Reviewing files that changed from the base of the PR and between 1fd75eb4d5ccc8dcf2628f43e038dea75186aef3 and fa49b28.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository: pingdotgg/t3code/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 7b06e314-3eee-4fa6-941e-5a2f61900cea

📥 Commits

Reviewing files that changed from the base of the PR and between 2a9832b and 1fd75eb4d5ccc8dcf2628f43e038dea75186aef3.

📒 Files selected for processing (2)
  • apps/web/src/components/preview/PreviewPanelShell.test.ts
  • apps/web/src/components/preview/PreviewPanelShell.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.


📝 Walkthrough

Walkthrough

The preview panel now uses half the viewport width as its default when that value exceeds 540px. The existing maximum-width clamp remains in place. Tests cover a 2,561px viewport and a 1,000px viewport.

Changes

Preview panel width

Layer / File(s) Summary
Derive and apply the default width
apps/web/src/components/preview/PreviewPanelShell.tsx, apps/web/src/components/preview/PreviewPanelShell.test.ts
The exported getPreviewPanelDefaultWidth returns the greater of 540px and half the supplied viewport width. The shell uses window.innerWidth when available, or 0 during server-side rendering, when no defaultWidth override is supplied. Tests expect 1,280px for a 2,561px viewport and 540px for a 1,000px viewport.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Bug fix

Suggested reviewers: bil0000

Merge Risk: ⚪ Minimal · up to 1fd75

The panel’s new default width is consistent with the stated behavior, and no actionable merge-blocking risk is established.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 66.67% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 2 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description check ✅ Passed The description clearly explains what changed and why. It includes before-and-after UI screenshots, verification steps, and scope details. It does not reproduce the checklist section, but the required…
Title check ✅ Passed The title is concise and accurately identifies the main change: the right panel now opens at half the window width on wide screens.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

otavio added a commit to otavio/nix-config that referenced this pull request Sep 26, 2026
@otavio
fix(t3code): open the right panel at half the window on wide screens
406fad1
The right panel opened at a fixed 540px in every thread without a saved
width, a thin strip on large monitors that had to be dragged wider in each
new thread. Carry pingdotgg/t3code#13734, which defaults it to half the
viewport with 540px as the floor. The preview moved the panel sizing into
usePreviewPanelInlineSize, so the patch is rebased onto that hook.
@otavio
fix(web): right panel opens at half the window on wide screens
fa49b28
@otavio
otavio force-pushed the t3code/widen-right-widget-container branch from 1fd75eb to fa49b28 Compare September 30, 2026 18:07
@otavio otavio mentioned this pull request Sep 30, 2026
Update flake inputs and follow T3 Code's orchestration v2 branch otavio/nix-config#263
Merged
@juliusmarminge ChatGPT Codex Connector

juliusmarminge commented Oct 1, 2026

Copy link
Copy Markdown
Member

Note

This comment is posted by Julius' dot

This changes the default opening width from 540px to half the viewport. The prior-approval rule requires explicit maintainer approval for changed product defaults; #11310 preserved the existing default and does not supply that approval. Please discuss the wide-screen default with maintainers and link their direction before requesting reconsideration.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge closed this Oct 1, 2026
@otavio otavio mentioned this pull request Oct 3, 2026
feat(t3code): update to the 0.0.46 nightly otavio/nix-config#268
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size:S 10-29 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@otavio @juliusmarminge
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.