Skip to content

Responsive: make the CT viewer usable on mobile#41

Open
eshankiyer wants to merge 1 commit into
BodyMaps:mainfrom
eshankiyer:feat-mobile-responsive
Open

Responsive: make the CT viewer usable on mobile#41
eshankiyer wants to merge 1 commit into
BodyMaps:mainfrom
eshankiyer:feat-mobile-responsive

Conversation

@eshankiyer

Copy link
Copy Markdown

A first responsive pass on the viewer, which is currently laid out for desktop only and looks cramped on phones.

Adds a single mobile breakpoint (@media (max-width: 768px)) to VisualizationPage.css:

  • The 2x2 MPR grid stacks into a single, scrollable column so each pane is full-width and legible.
  • The floating control drawer fits the screen (min(90vw, 22rem)) instead of a fixed desktop width.
  • The toolbar wraps instead of overflowing.

Everything is scoped inside the media query, so the desktop layout is unchanged. Production build and all 48 tests pass. This is a starting point; happy to extend the same treatment to the dashboard and upload pages.

Adds a mobile breakpoint (max-width 768px) to the viewer: the 2x2 MPR grid
stacks into a scrollable single column, the floating control drawer fits the
screen instead of a fixed desktop width, and the toolbar wraps. Scoped to
small screens via media query, so the desktop layout is unchanged.
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