Reduce the gap under category pills on the Discover category page - #4862
Reduce the gap under category pills on the Discover category page#4862mdrockwell wants to merge 2 commits into
Conversation
… page On a selected-category page the LargeListSummary title sat 30pt below the category pills, leaving a large empty band. Reduce the title's top padding to 16pt in that context so it matches the pills-to-content spacing on the root Discover screen. Scoped by category != nil, so large lists elsewhere in the Discover feed keep the default spacing. PCIOS-193
|
Claude finished @mdrockwell's task in 1m 26s —— View job Code Review: Reduce gap under category pills
Nice, focused change. The logic is correct and the scoping via A few minor, non-blocking notes: 1.
In practice you're almost certainly saved by the subsequent private var category: DiscoverCategory? {
didSet {
view.setNeedsLayout()
}
}2. The 16pt is a manual copy of The comment does a great job documenting the coupling, so this is acceptable as-is. Worth noting the value can't be referenced directly today because 3. Fixed padding doesn't scale with Dynamic Type
Summary: Looks good to merge. The |
Generated by 🚫 Danger |
|
Claude finished @mdrockwell's task in 1m 35s —— View job Code Review: Reduce gap under category pills
Focused, well-documented change — I re-traced it and it holds up. Verified findings: ✅ Correctness & scoping. ✅ The 16pt is the right value. Confirmed against ✅ Targets exactly the intended element. On a category page the "Most Popular in …" One thing to keep in mind (not a bug): the branch keys on Minor / non-blocking:
private var category: DiscoverCategory? {
didSet {
view.setNeedsLayout()
}
}Summary: Correct, well-scoped, and the fixed 16pt (rather than a Dynamic-Type-scaled value) is appropriate since it mirrors a fixed spacing gap. No correctness, security, or performance concerns. Good to merge — the |
| return max(baseHeight, metric.scaledValue(for: baseHeight)) | ||
| } | ||
|
|
||
| /// Tighter top padding when this list is shown on a selected-category page (directly |
There was a problem hiding this comment.
Is that something I'll need to take care of and resubmit or can it be handled another way?
There was a problem hiding this comment.
I'll take care it. Claude tends to over-document. This is something you typically put in the commit message instead.

Fixes PCIOS-193
On a selected-category Discover page (e.g. after tapping Comedy), the "Most Popular in …" list title sat 30pt below the category pills, leaving a large empty band. This reduces that title's top padding to 16pt in the selected-category context, so it matches the pills-to-content spacing on the root Discover screen — where the pills carry a 16pt bottom inset that drops to 0 once a category is selected.
The change is scoped to the selected-category context (
category != nilinLargeListSummaryViewController), so large lists elsewhere in the Discover feed keep their existing spacing.Before
After
To test
Checklist
CHANGELOG.mdif necessary.