Skip to content

Fix landscape reading safe area - #25

Merged
nehemiaharchives merged 2 commits into
masterfrom
agent/fix-landscape-safe-area
Jul 8, 2026
Merged

Fix landscape reading safe area#25
nehemiaharchives merged 2 commits into
masterfrom
agent/fix-landscape-safe-area

Conversation

@nehemiaharchives

Copy link
Copy Markdown
Owner

Summary

Fixes the landscape layout bug where the reading text could extend into the display cutout / inner camera area while the book and chapter controls stayed inside the correct safe boundary.

Root cause

BookControlsBar and ChapterControlsBar already apply WindowInsets.safeDrawing for horizontal insets, so they avoid landscape cutouts. BibleReadingArea only applied status/navigation bar padding and did not consume horizontal safe drawing insets, so in landscape on devices with a side camera/cutout the reading column could draw wider than the controls and text could be hidden.

Change

Apply WindowInsets.safeDrawing.only(WindowInsetsSides.Horizontal) to the reading area container. This makes the right/left edge of the reading area use the same horizontal safe boundary as the book/chapter control rows, while preserving the existing vertical status/navigation handling.

Validation

Static diff review only. I could not run Android UI validation from this environment.

@nehemiaharchives nehemiaharchives self-assigned this Jul 8, 2026
@nehemiaharchives
nehemiaharchives marked this pull request as ready for review July 8, 2026 12:38
@nehemiaharchives
nehemiaharchives merged commit 032018a into master Jul 8, 2026
65 checks passed
@nehemiaharchives
nehemiaharchives deleted the agent/fix-landscape-safe-area branch July 8, 2026 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant