Repository navigation
fix(requests): keep the loading skeleton inside the page column - #604
Conversation
- Let the request rail skeleton shrink below the total width of its cards so it clips instead of widening the page - Stop the Requests hub from sliding off the leading edge on a cold start - Add a layout test that checks the rail fits a narrow phone column
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configuration
📒 Files selected for processing (2)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
maxWidth: .infinityframe let them widen the whole column. The scroll view then centered that wider column.minWidth: 0to the rail frame inRequestRailSkeleton. The frame can now shrink below the cards' total width, so.clipped()trims the overflow and the column keeps its width.RequestRailSkeletonLayoutTests, which hosts the rail in a 361 pt column and asserts it does not grow wider than that column.Testing
RequestRailSkeletonLayoutTests(new, iniosApp/Tests/).AI disclosure
Written with Claude Sonnet 5.5 (
claude-sonnet-5-5) in Claude Code (Claude Agent SDK). No other AI tooling was used.Note
Fix
RequestRailSkeletonoverflow in narrow request page columnsSets a zero minimum width on the rail frame in RequestsLoadingSkeleton.swift, so the rail shrinks to the parent width instead of expanding to the combined width of its placeholder cards. Excess cards are clipped.
Adds a layout test in RequestRailSkeletonLayoutTests.swift that measures a four-card rail at 361 points and asserts the width stays within 0.5 points of the column.
Macroscope summarized aaf9f71.