Skip to content

Mobile hamburger menu, iPhone layout fixes, page title - #9

Merged
zxpower merged 1 commit into
mainfrom
fix_mobile_view
Nov 16, 2026
Merged

zxpower merged 1 commit into
mainfrom
fix_mobile_view

Conversation

@zxpower

@zxpower zxpower commented Nov 16, 2026

Copy link
Copy Markdown
Owner

Mobile layout (checked at iPhone 15 Pro size, 393×852)

  • Hamburger menu on screens narrower than 600px. The header shows Ballistic Calculator plus a button with the current tab and ☰, which opens a dropdown. Picking a tab, tapping outside the menu or pressing Esc closes it. On desktop the tabs stay inline next to the title.
  • No more sideways scrolling
    • Inputs and dropdowns are 16px on phones, so iOS Safari no longer zooms in and shifts the page when a field is tapped.
    • The page itself can't scroll sideways (overflow-x: clip on html, which keeps the sticky header working). Wide tables still scroll inside their own box.
    • -webkit-text-size-adjust: 100% stops iOS from enlarging text on rotation.
  • Load card: the bullet weight input was squeezed to almost nothing next to the gr/g toggle. It now gets its own full row on phones.
  • Unit buttons on the Turret tab are narrower on phones, giving the number input more room.

Naming

  • Browser tab title and header: Ballistic Calculator.
  • The Turret tab card is renamed from "Ballistic Turret Calculator" to "Turret Calculator".

Tests

node test.js: 70 passed. The DOM stub gets the extra methods the menu code needs.

@zxpower zxpower self-assigned this Nov 16, 2026
@zxpower
zxpower merged commit c1abb70 into main Nov 16, 2026
2 checks passed
@zxpower
zxpower deleted the fix_mobile_view branch November 16, 2026 09:50
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