Add right padding for alphabet scrollbar#162
Conversation
…r is visible Prevents song rows and Play/Shuffle/Search controls from being obscured by the alphabet scrollbar overlay.
📝 WalkthroughWalkthroughCompute a single Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 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 |
SliverPadding shifted the entire list including dividers off-screen. Per-row padding only insets the PlayableRow content while dividers stay within bounds.
Wraps SliverList in SliverPadding so the entire list including dividers is inset from the right, not individual rows.
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@lib/ui/screens/songs.dart`:
- Line 156: The rightPadding currently uses 0.75 * alphabetScrollbarWidth which
can allow content to be obscured; update both occurrences to reserve the full
scrollbar width by changing the conditional to use alphabetScrollbarWidth (i.e.,
replace showScrollbar ? alphabetScrollbarWidth * 0.75 : 0 with showScrollbar ?
alphabetScrollbarWidth : 0) where rightPadding is set, referencing the
rightPadding property and the alphabetScrollbarWidth variable in songs.dart so
the layout fully avoids the scrollbar overlay.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 75c7f831-3dd1-4de6-9d13-fcad28173db5
📒 Files selected for processing (8)
lib/ui/screens/albums.dartlib/ui/screens/artist_details.dartlib/ui/screens/artists.dartlib/ui/screens/favorites.dartlib/ui/screens/genre_details.dartlib/ui/screens/playlist_details.dartlib/ui/screens/songs.dartlib/ui/widgets/sliver_playable_list.dart
✅ Files skipped from review due to trivial changes (2)
- lib/ui/screens/albums.dart
- lib/ui/screens/artists.dart
🚧 Files skipped from review as they are similar to previous changes (5)
- lib/ui/screens/favorites.dart
- lib/ui/screens/genre_details.dart
- lib/ui/widgets/sliver_playable_list.dart
- lib/ui/screens/playlist_details.dart
- lib/ui/screens/artist_details.dart
Summary
rightPaddingparameter toPlayableListHeaderandSliverPlayableListalphabetScrollbarWidthas right padding to prevent content from being obscuredTest plan
flutter testSummary by CodeRabbit