Skip to content
MyAppBuilder
StableReference

Breakpoints

A breakpoint is the screen width at which your app switches from one layout to another. MyAppBuilder uses three breakpoints, and every responsive setting in the editor refers to one of them.

A breakpoint is the screen width at which your app switches from one layout to another. MyAppBuilder uses three breakpoints, and every responsive setting in the editor refers to one of them.

The three breakpoints

BreakpointApplies when the app is…Typical devices
Mobile639 px wide or narrowerPhones, small phones in landscape
Tabletbetween 640 px and 1023 px wideTablets, small laptops, a narrow browser window
Desktop1024 px wide or widerLaptops, desktop monitors

The width that counts is the width of the app itself, not the whole screen. If a visitor opens the app in a narrow browser window on a large monitor, they get the tablet or mobile layout. This is also why the editor can show you the mobile layout inside a frame on the canvas.

Device frames in the editor

When you pick a device in the Build top bar or in the preview, the canvas is drawn at a fixed width that represents that device:

Device toggleCanvas widthBreakpoint shown
Desktop1040–1200 px (fits the space available, up to 1200 px)Desktop
Tablet820 pxTablet
Mobile390 pxMobile

The caption under the canvas shows the page name, its route and the current width (for example "Mobile 390px · shown at 80%" when the canvas is scaled to fit).

The frames are representative sizes. A real phone that is 412 px wide still gets the mobile layout because it is under 640 px.

How to check each breakpoint

  1. Open Build and select the page.
  2. Click Desktop, Tablet or Mobile in the top bar. The canvas reflows.
  3. Select a component and open the Responsive tab in the inspector. The breakpoint selector at the top of the tab follows the device you chose, so you edit the size you are looking at.
  4. Open Preview and use the same toggle to try the page interactively at that size.

Example

A dashboard has three KPI cards, each 4 columns wide on desktop.

Example
Desktop (>= 1024 px)       Tablet (640–1023 px)        Mobile (<= 639 px)
[ KPI ][ KPI ][ KPI ]      [ KPI    ][ KPI    ]        [ KPI            ]
                           [ KPI    ]                  [ KPI            ]
                                                       [ KPI            ]

Nothing was configured: 4-column items become half width on tablet and full width on mobile automatically.

Common mistakes

  • Expecting a fourth breakpoint. There is no separate "large desktop" or "small phone" size. Use the three breakpoints and max-width settings in the Layout tab if you need to cap very wide layouts.
  • Testing only in a maximised browser. Drag your browser narrower, or use the device toggle, to see the tablet and mobile layouts.

Advanced

Breakpoints are evaluated against the width of the app's root element (a CSS container query on .mab-root), so the same thresholds apply in the editor canvas, the preview frame and the published app. The thresholds are mobile <= 639, tablet <= 1023, otherwise desktop. The navigation bar collapses at a separate container width of 767 px (see Mobile navigation).

Related

Was this helpful?