Resize viewport
preview_resize- Group
- Preview
- Turned on by
- Its own switch on the Tools page of Conversation settings.
- Approval
- Not reviewed: runs without asking, within the limits on this page.
- Profile key
tool.preview_resize.description
Emulates a device size or a light or dark colour scheme on the conversation's preview page, for testing responsive layouts.
mobile is 375 × 812, tablet is 768 × 1024, and desktop clears the size emulation. The size stays through reloads and navigation.
When it asks you
Never. If you have been using the page yourself, the pane asks you to give it back. If the page is signed in to a site, Mewrk first asks you to approve the takeover, at every security level. See Browser and preview.
Good to know
- Below 768 pixels wide the page also acts as a phone with touch input, so hover states stop appearing; pages that detect the device on load need a reload.
- Pages follow Mewrk's light or dark theme. A
colorSchemeset here stays on the tab, through reloads anddesktop, until you change the app theme or reopen the pane.
Parameters
| Parameter | Type | Details |
|---|---|---|
colorSchemeColor scheme | string | Emulate prefers-color-scheme media feature for dark/light mode testing."light" "dark" |
heightHeight | number | Needs width. |
presetDevice preset | string | Overrides width/height."mobile" "tablet" "desktop" |
serverIdServer ID | string | Server ID |
widthWidth | number | Needs height. |