Skip to content

fix(android): prevent system status bar from overlapping the title bar - #324

Open
TtvNekix wants to merge 2 commits into
OpenLeagueManager:developfrom
TtvNekix:fix/android-safe-area
Open

fix(android): prevent system status bar from overlapping the title bar#324
TtvNekix wants to merge 2 commits into
OpenLeagueManager:developfrom
TtvNekix:fix/android-safe-area

Conversation

@TtvNekix

Copy link
Copy Markdown
Contributor

Summary

On Android, the system status bar (time, battery, notifications) overlaps the in-game title bar, making top buttons (search players, advance days, etc.) untappable.

Fix

  • Measures env(safe-area-inset-top) via a hidden CSS probe element
  • Applies the measured value as paddingTop on the root container, pushing all content below the status bar
  • Falls back to 48px when the CSS env() is unavailable (some Chromium WebViews on Android)
  • The measurement runs after the Android immersive mode effect settles to get accurate values

Affected platforms

Android only. The change is purely frontend (AppV2.tsx).

TtvNekix added 2 commits June 13, 2026 03:41
refresh_hiring_cycle_budgets recalculated wage_budget as 6 % of current cash, which could drop below the existing annual wage bill when the team had spent money during the split. This caused the dashboard to show nonsensical percentages (e.g. 492 % budget usage) when no signings were made.

Fix: the new wage_budget is never set lower than the current annual wage bill. Pre-calculate wage bills before the mutable team loop to satisfy Rust borrow checker.
- Added safe-area-inset-top measurement via env() CSS probe
- Root container gains paddingTop matching the Android status bar height
- Falls back to 48px when env() is unavailable
- Includes the budget fix commit (shared olm_core code, affects both PC and Android)
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