-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Fix: Bottom buttons overlapping navigation bar in Edit Image screen (#6495) #6541
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Fix: Bottom buttons overlapping navigation bar in Edit Image screen (#6495) #6541
Conversation
…creen (commons-app#6495)" This reverts commit babc06d. Revert "Fix bottom buttons overlapping navigation bar in Edit Image screen (commons-app#6495)"#
| android:layout_height="wrap_content" | ||
| android:layout_margin="2dp"> | ||
| android:layout_margin="2dp" | ||
| android:paddingBottom="24dp"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this paddingBottom really needed? Would you mind posting a screenshot showing how the screen looks like when the OS is configured to not show the navigation buttons?
Thanks a lot for contributing! :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the extra padding can be removed — it was mostly for visual spacing, to make the buttons look less close to the navigation bar.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Understood! Better remove it I guess, so that the space can be used on small screens or in landscape mode.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done!
WalkthroughAdded the Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes
Poem
Pre-merge checks and finishing touches❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🔇 Additional comments (1)
Comment |
|
✅ Generated APK variants! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.


Issue
Fixes #6495
Cause
The root FrameLayout did not account for system window insets, and the bottom LinearLayout was aligned directly to the screen bottom without padding.
Fix
Added android:fitsSystemWindows="true" to the root layout.
Added android:paddingBottom="24dp" to the bottom button layout to provide safe spacing.
Result
Buttons are now fully visible across devices (confirmed on Galaxy S23 API 35 emulator).
Screenshots


before:
after:
Summary by CodeRabbit