No actionable comments were generated in the recent review.
Recent review info
-
Run configuration
- Source mode: Auto
- Repository: pingdotgg/t3code
- Branch: main
- File: .coderabbit.config.ts
- Commit: 87ea18c
- Layers: Repository TS config
- Review profile: CHILL
- Plan: Advanced
- Run ID:
17b89e85-156c-460f-81c5-633b5ee63649
Commits
Reviewing files that changed from the base of the PR and between 87ea18cad91fa246f66e65acd00fe99aa733c14e and 29b93dab1afe1f66e8882dd6b904b06e59fdf5e4.
Files selected for processing: 2
apps/web/src/components/chat/HtmlRenderFrame.tsxapps/web/src/components/files/BrowserDocumentFrame.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
Inline HTML renders now pass a fitted state based on reported content height. Fitted frames disable iframe scrolling. Frames that are not fitted leave the scrolling attribute unspecified.
Changes: Inline HTML frame scrolling
Layer / File(s) Summary Determine fitted state and set iframe scrolling
apps/web/src/components/chat/HtmlRenderFrame.tsx,apps/web/src/components/files/BrowserDocumentFrame.tsxHtmlRenderFramemarks content as fitted when its height is unknown or at or belowHTML_RENDER_MAX_FIT_HEIGHT.HtmlRenderDocumentsetsscrolling="no"when fitted. Otherwise, it leaves the attribute unspecified.Priority: Normal
Estimated code review effort: 2 (Simple) | ~8 minutes
Change: Bug fix · Severity of issue fixed: Medium
Suggested reviewers:
maria-rcks
Merge Risk: Minimal · up to 29b93
No actionable merge-blocking risk remains in the reviewed change.
Pre-merge checks: 4
Check name Status Explanation Title check The title clearly and concisely describes the main fix: preventing trackpad swipes over inline renders from being lost after a direction change. Description check The description includes the required Problem, Change, Scope and approval, and Verification sections. It explains the cause, implementation, scope, behavior change, test results, limitations, and issu… Linked Issues check The PR addresses #23864.HtmlRenderFramesetsfittedwhen no height is reported or whencontentHeight <= HTML_RENDER_MAX_FIT_HEIGHT.HtmlRenderDocumentthen setsscrolling="no"only for fitt…Out of Scope Changes check The changes stay within #23864. They add the fitted-state calculation inHtmlRenderFrameand make the shared iframe honor that state throughscrolling="no". The optional prop preserves existing be…Full details: Description check
Explanation
The description includes the required Problem, Change, Scope and approval, and Verification sections. It explains the cause, implementation, scope, behavior change, test results, limitations, and issue reference.
Full details: Linked Issues check
Explanation
The PR addresses
#23864.HtmlRenderFramesetsfittedwhen no height is reported or whencontentHeight <= HTML_RENDER_MAX_FIT_HEIGHT.HtmlRenderDocumentthen setsscrolling="no"only for fitted frames. This covers remounted frames and keeps frames above the fit cap scrollable. Callers withoutfitted, including the file-preview path, keep the attribute unset. The reported manual and synthesized gesture checks support the requested swipe behavior. No linked coding requirement requires an automated test for this browser gesture issue.
Full details: Out of Scope Changes check
Explanation
The changes stay within
#23864. They add the fitted-state calculation inHtmlRenderFrameand make the shared iframe honor that state throughscrolling="no". The optional prop preserves existing behavior for fullscreen and file-preview callers. No unrelated source or behavior change is shown.
Finishing Touches
🧪 Generate unit tests (beta)
- Create a new PR
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment @coderabbitai help to get the list of available commands.