Bug: Mobile — dark/light theme toggle hidden behind bottom nav bar #51
Labels
No labels
agent:fix_bugfix
agent:fix_conflicts
agent:fix_security
agent:gap_analysis
agent:implement
agent:implement
agent:implement
agent:open_issues
agent:ready
agent:research
agent:security_audit
agent:verify
architecture
backend
blocker:hybrid
blocker:launch
blocker:limit-orders
blocker:v2
block:log_only
block:security
bug
ci
contracts
correctness
deploy
dev
devops
docs
documentation
duplicate
e2e
enhancement
epic
feature
frontend
functional-completion
gas
good first issue
governance
help wanted
high-risk
hooks
hybrid
indexer
infra
infrastructure
integrators
invalid
launch-blocker
limit-orders
localnet
localterra
low priority
missing-implementation
needs-design
ops
performance
priority
high
priority
medium
product
qa
QA
question
ready
ready
research
scripts
security
security-hardening
smartcontracts
tech-debt
testing
ux
UX
v2
verification
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
code/cl8y-dex-terraclassic#51
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Current behavior: on mobile viewports (iPhone 14 Pro Max, Samsung, Pixel 7, Surface Duo), tapping More in the bottom nav opens a menu showing Trader, Protocol, Fee Tiers, Create Pair. the dark/light theme toggle buttons below these items are cut off by the bottom nav bar and not reachable.
Expected behavior: More menu should scroll or position so the theme toggle is fully visible and tappable above the bottom nav.
Acceptance criteria:
tested on
671e72f. screenshot attached in comments.mentioned in issue #44
mentioned in issue #50
mentioned in commit
f3a18dcdebShipped a fix in
main(commitf3a18dc).Cause: The More sheet used a fixed
bottom: 84pxwhile the real mobile bottom bar is taller (padding + row height +safe-area-inset-bottom, and actual row height can exceed the 52px min when the layout resolves). The bar also sits atz-index: 50vs the sheet at32, so the theme controls ended up under the nav and were not reachable.Fix:
useSyncMobileNavStackmeasures the live nav height withResizeObserver, writes--app-mobile-nav-stackon.app-shell, and the sheet usesbottom: calc(var(...) + 8px)plus amax-heightandoverflow-y: autofor short viewports. Sheetz-indexis raised above the bar. Footer and mobile theme toggles are deduplicated viaThemeSegmentedControl; unit tests cover the hook and control.@Brouie could you verify on the listed viewports (and attach a screenshot) when you have a moment? Leaving this issue open until QA sign-off.
Verified on
38afbf8. Dynamic --app-mobile-nav-stack CSS var via ResizeObserver tracks actual bottom nav height. Portals and modals now account for it via getMobileBottomNavInsetPx. Theme toggle in More menu sits above bottom nav. Three commits (f3a18dc,aeb28b4,38afbf8) covering More menu, portal/modal spacing, and desktop viewport caps. New tests: mobileBottomNav (3), ThemeSegmentedControl (2). Frontend 214/214.mentioned in issue #220