Skip to content

Fix navbar height#137

Merged
theovilardo merged 6 commits intomasterfrom
fix-navbar-height
Sep 9, 2025
Merged

Fix navbar height#137
theovilardo merged 6 commits intomasterfrom
fix-navbar-height

Conversation

@theovilardo
Copy link
Owner

No description provided.

google-labs-jules bot and others added 6 commits September 9, 2025 12:50
When using the 3-button system navigation, the `systemNavBarInset` needs to be added to the total height of the `FULL_WIDTH` navigation bar to prevent its content from being squashed.

This change modifies the height calculation for the navigation bar's container in `MainActivity.kt` to account for the system navigation inset, ensuring the layout adapts correctly.
…tion

When using the 3-button system navigation, the `systemNavBarInset` needs to be added to the total height of the navigation bar to prevent its content from being squashed.

This change modifies the height calculation for the navigation bar's container in `MainActivity.kt` to account for the system navigation inset. The fix is now applied universally to both `DEFAULT` and `FULL_WIDTH` styles, ensuring the layout adapts correctly in all cases.
This commit fixes a layout issue where the navigation bar would get
squashed when using the 3-button system navigation. The fix is
implemented conditionally to support the distinct visual styles of the
`DEFAULT` and `FULL_WIDTH` navigation bars.

For the `FULL_WIDTH` style, the system navigation inset is added
directly to the component's height to prevent content from being
compressed.

For the `DEFAULT` style, the system navigation inset is applied as
external bottom padding. This preserves the intended "floating"
appearance while ensuring the component has enough space and is not
overlapped by the system navigation bar.
This commit refactors the padding calculation for the navigation bar in `MainActivity.kt`.

The `systemNavBarInset` and `horizontalPadding` variables are now defined earlier in the composable function, outside the `Scaffold`'s `bottomBar` lambda. This improves readability and potentially avoids redundant calculations if these values were needed elsewhere within the `Scaffold`'s scope.
This commit reduces the height of the `PlayerInternalNavigationBar` when in full-width mode.

The `NavBarContentHeightFullWidth` constant in `PlayerInternalNavigationBar.kt` has been changed from `94.dp` to `84.dp`.
@theovilardo theovilardo merged commit 93b2b16 into master Sep 9, 2025
@theovilardo theovilardo deleted the fix-navbar-height branch September 9, 2025 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant