Skip to content

Improve mobile UX of the explorer - #15

Merged
FlorianNachtigall merged 5 commits into
mainfrom
floriannachtigall-improve-mobile-ux
Oct 9, 2026
Merged

FlorianNachtigall merged 5 commits into
mainfrom
floriannachtigall-improve-mobile-ux

Conversation

@FlorianNachtigall

Copy link
Copy Markdown
Member

Closes #14

Explorer

  • Compact top bar on phones: home · search · filter icon (replaces the "Hide control panel" text); home button on all screen sizes
  • Filters collapse automatically when a city is selected; filters and city info open below the search bar, so nothing overlaps
  • Feedback note auto-hides after 6 s on small screens
  • Full-screen map with native map-app gestures: drag/pinch move only the map, page never scrolls or zooms, overlays stay fixed
  • Map fills the plot area at any aspect ratio (no letterboxing on portrait phones or desktop) while keeping all cities in view on landscape screens
  • Selected city is centered in the part of the map not covered by the info panel
  • Search bar no longer overlaps the control panel at medium widths (stacks above it below 1130px)
  • Landscape phone / tablet layout: search + filters on the left, city info on the right

Landing page

  • Mobile footer centered, acknowledgment and links separated by a divider

… panels below search bar, auto-hide feedback note
- On portrait screens fit a lon/lat box with the screen's aspect ratio so the
  map fills the full height instead of a letterboxed band
- Lock page scroll, overscroll and pinch-zoom on the explorer (touch-action,
  dynamic viewport meta, iOS gesture events) so gestures only pan/zoom the map
  while search bar, filters and legend stay fixed
- Use dynamic viewport height and a fixed full-screen root on mobile
- Track user pans (geo.center.lon/lat) and refit the default view on resize
- Top bar groups home | search | filters; home links back to the landing page
- Desktop: search bar centered in the free space between controls and info
  panel; below 1130px it stacks above the controls panel (no more overlap)
- Compact layout (phones in portrait and landscape, short windows) shares one
  media query with JS; panels use min(400px, 100% - 20px) so landscape gets a
  left column for search/filters and a right column for city info
- Controls panel scrolls instead of running into the legend on short windows
…ity visible

- Pick a lon/lat box matching the container's aspect ratio instead of letting
  Plotly fit the whole globe (removes empty bands on desktop too) while keeping
  all cities in view on landscape screens
- When zooming to a city, offset the center so it lands in the map area not
  covered by the info panel (tablets, landscape phones)
@FlorianNachtigall
FlorianNachtigall merged commit ef16401 into main Oct 9, 2026
2 of 3 checks passed
@github-actions

github-actions Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

🚀 Preview deployed for this PR:

https://ai4up.github.io/cities-learning-explorer/pr-15/

This comment is kept up to date automatically.

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.

Improve mobile UX of the explorer

1 participant