fix(layout): make the console usable on mobile
Summary
Issue: no ticket
Depends on #3257 (shared components and utilities), this PR targets its branch. Review #3257 first. Once it is merged, this PR's base moves to staging.
On a phone the console rendered at 712px and was cut off on every page. The cause is min-width: 44.5rem on body in main.scss. This PR removes it, along with the two workarounds that reset it on the auth page and the onboarding and the WarningScreenMobile component, and fixes the pages that still overflowed at 390px. The diff is page-level classes and JSX, best reviewed on the preview.
- Header: Feedback is hidden below md, AI Copilot shows its icon only (label kept for screen readers).
- Settings layouts (organization, cluster, project, environment, service, alerts, monitoring): the side nav stacks above the form. Before, forms got about 150px.
- Service, environment and cluster headers, variables toolbar, service logs toolbar, instances summary: wrap below md.
- Audit logs: below md the table keeps timestamp, event and target; the details stay one tap away. The user, source and target type filters live in the hidden column headers, so phones only filter by date and event.
- Cluster list and new service picker: one column on phones.
- Cluster node pools (overview): each card stacks name and description, then CPU, memory and nodes as full-width rows. Before, four 25% columns broke descriptions one word per line. The expanded nodes table scrolls horizontally.
- Cluster resources settings: node pool details and the disk IOPS/throughput inputs go to one column. Same for the subnet lists in network settings, the KEDA scaler fields, the VPC mode cards and the service remove modal.
- Role edit matrix: scrolls horizontally, with a static header below md so it no longer covers the first row.
- Organization settings pages: the primary action button sits under the title instead of on top of it; list rows (credentials, registries, git tokens, helm repositories, webhooks) wrap long values and keep their actions visible. 16px side padding on all settings, danger zone and creation flow pages.
- Logs: pre-check log lines put the message under the line number and timestamp at full width; log headers wrap.
- Dense tables (advanced settings, health checks, nodes): scroll horizontally on phones.
- Banners, deployment header, cloud shell toolbar, monitoring toolbar, auto-deploy row, error page: wrap or shrink instead of overflowing.
- Full-height views (chart, variable, Dockerfile and values modals, log panels):
100dvhinstead of100vh, so their bottom edge is no longer hidden under the mobile browser toolbar. - Data tables on phones (the key columns stay, secondary ones are hidden below md): environment service list (name, status, actions), environments table (name, actions), variables (name, value, actions), deployment lists for services, environments and clusters (date, status), members (name, role), cluster workloads (environment, pods, CPU, memory), external secrets (name, actions), agentic workflow runs (date, status), ArgoCD services (service, actions). Hidden columns are keyed on column ids or per-cell classes, never on positions.
- Sticky Save on mobile: in 24 long settings forms the Save row sticks to the bottom of the screen below md and returns to its place at the end of the form.
- Copy buttons that only appeared on hover are always visible on touch screens.
Every layout change uses max-md:, a md: override or a touch media query, so desktop renders the same.
The new deployment logs step view that landed on staging (f8d867907) is not covered here yet; it will get its own pass.
Screenshots / Recordings
Open the preview on a phone (or browser devtools at 390px): https://3241-console-staging.zc531a994.rustrocks.cloud (served from #3241, which holds both halves together for the preview and will be closed once this PR and #3257 are merged).
Testing
Playwright with mobile emulation at 390x844, logged in against production data: 171 routes at 390px and 360px, landscape, every menu trigger on each page (142 menus), reviewed screenshot by screenshot. scrollWidth stays at 390 and nothing sticks out of the viewport outside scroll containers, except the Helm values YAML editor, which scrolls on purpose. Desktop at 1024px and 1440px compared against staging: no visible change.
- Changes tested locally in the relevant Console's pages (Playwright, 390px, 360px and landscape)
-
yarn test: related specs locally (jest --findRelatedTests), full run in CI -
yarn format -
yarn linton changed files
Not tested on a real device.
PR Checklist
- I followed naming, styling, and TypeScript rules (see
.cursor/rules) - I performed a self-review (diff inspected, dead code removed)
- I titled the PR using Conventional Commits with a scope when possible
- I only kept necessary comments, written in English
- I involved a designer to validate UI changes if I am not a designer
- I covered new business logic with tests (unit)
- I confirmed CI is green (Codecov red can be accepted)
- I reviewed and executed locally any AI-assisted code

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Summary by cubic
Fixes console layout so every page fits on phones instead of rendering at 712px and being cut off. Removes the min-width: 44.5rem on body that caused the overflow, along with the auth and onboarding workarounds and the WarningScreenMobile component, then reflows the pages that still overflowed at 390px. Desktop renders unchanged; every change is scoped with max-md:, a md: override, or a touch media query. This targets the branch of #3257 (shared components), review that PR first; the base moves to staging once it merges.
Mobile behavior changes
- Settings side navs (organization, cluster, project, environment, service, alerts, monitoring) stack above the form instead of squeezing it to ~150px.
- Data tables keep their primary columns below
mdand hide secondary ones, keyed on column ids or per-cell classes, never positions. - Audit logs keep timestamp, event, and target; user, source, and target type filters are hidden, so phones filter by date and event only.
- The Save row sticks to the bottom of the screen on 24 long settings forms and returns to the end of the form on desktop.
- Hover-only copy buttons are always visible on touch screens; the Feedback button hides below
mdand AI Copilot shows only its icon. - Full-height views and log panels use
100dvhso their bottom edge is no longer hidden under the mobile browser toolbar. - The deployment logs step view that landed on staging is not covered yet and will get its own pass.
Tested with Playwright mobile emulation at 390x844 and 360px plus landscape across 171 routes; scrollWidth stays at 390 outside scroll containers.