Responsive layout

Overview

The mouaif web UI is mobile-first: every surface is designed for a 360–430 px phone, then scales up to tablet and desktop. The app frame grows with the window up to 1152 px instead of staying a 480 px phone column, and long-form surfaces (chat bubbles, transcript cards, the composer) keep a readable measure inside that frame.

Before this change the shell carried a hard max-width: 30rem (480 px). On a laptop that produced the worst of both layouts: the modals (@media (min-width: 720px)) and the Inspector (@media (min-width: 900px)) switched to their desktop branches — both written for a wide viewport — while the frame they were laid out in stayed 480 px, so the desktop UI was squeezed into a phone-width strip and the rest of the window stayed empty.

Usage

No settings and no toggles: the layout responds to the window.

Window widthApp frameLists, groups, view heads, hintsChat bubbles, cards, composer, chat head
360–430 px (phone)viewport widthviewport width92% of the transcript
430–899 px (large phone, portrait tablet)viewport widthviewport width92% of the transcript
900–1152 px (tablet, small laptop)viewport widthcapped at 896 px, centredcapped at 704 px, centred
1152 px and wider (desktop, ultrawide)capped at 1152 px, centredcapped at 896 px, centredcapped at 704 px, centred