Designing for Scrollable and Mobile Dashboards
You can design a separate sheet for phones and send each user to the right sheet when the workbook opens.

Creating a scrollable sheet design
Section titled “Creating a scrollable sheet design”Start from a copy of your full-screen sheet, so the objects are already in place.

- On the new sheet, turn on Lock aspect ratio. The sheet keeps that shape while you design, so you work on a phone-sized canvas.
- Select Custom and set the ratio to
9:19.5, the shape of a typical recent phone screen held upright. - Rearrange the objects for a narrow screen. Put the main content at the top of the sheet.
For a sheet longer than one screen that the reader scrolls through, use a taller ratio. For example, 1 : 10 is about four and a half 9 : 19.5 screens. The Scrolling setting in the same panel decides how a tall sheet is shown. With None, the whole sheet is scaled down to fit in the window, so a tall sheet does not scroll; it shows smaller. To let the reader scroll, choose the Scrolling option that fits the sheet to the width of the window: the sheet then fills the width and scrolls up and down when it is taller than the window.
Automatically show the right sheet for the device
Section titled “Automatically show the right sheet for the device”When the mobile sheet is ready, open Actions.

Add the blocks below. Use the search in the actions editor to find each block.
- If the browser window is portrait (taller than it is wide), go to the mobile sheet (Mobile Overview here).
- Otherwise, go to the full-screen sheet (Overview here).

The Browser values Height (pixels) and Width (pixels) are the inner size of the browser window. To test the routing on a computer, make the browser window taller than it is wide and reload the workbook.
Copy the blocks
Section titled “Copy the blocks”You can copy the code block below and paste it into your actions workspace. It builds the same blocks, but its Go to blocks point at sheets named Home (mobile) and Home: after pasting, select your own mobile and full-screen sheets in them.
{"serializedActions":{"type":"astrato_actions_event_before_workbook_opens","id":"Mg]1tStANqaD--CtmIae","x":-1012,"y":-698,"inputs":{"DO":{"block":{"type":"controls_ifelse","id":"Fc4n/lE+5{!`[~,Mh:lj","inputs":{"IF0":{"block":{"type":"math_compare","id":"irYEyO/}lO`,!#Ue#Msc","fields":{"math_compare_operation":"GREATER"},"inputs":{"value1":{"shadow":{"type":"custom_math_number","id":"HL;:z%fTHE@ctb3^6]:r","fields":{"NUM":0}},"block":{"type":"get_context_values","id":"5Ut*9dOtwGAnC^W;Fd~g","extraState":{"selected":["browser","browser_height"]},"fields":{"level0":"browser","level1":"browser_height"}}},"value2":{"shadow":{"type":"custom_math_number","id":"6iZEseSVvmc*(bF2zM7F","fields":{"NUM":0}},"block":{"type":"get_context_values","id":"%hr;KX_CZR;``T}~1e#2","extraState":{"selected":["browser","browser_width"]},"fields":{"level0":"browser","level1":"browser_width"}}}}}},"DO0":{"block":{"type":"go_to_sheet_v1","id":",|Q@P;*?#ao2cU][UbL0","inputs":{"selected_sheet":{"shadow":{"type":"custom_dropdown","id":"/jwtVg/f)lJPYOWMq)I~","fields":{"TEXT":"Home (mobile)"}}}}}},"ELSE":{"block":{"type":"go_to_sheet_v1","id":"vi!Y*ixO)4-N+1!L5:El","inputs":{"selected_sheet":{"shadow":{"type":"custom_dropdown","id":"CrHRi`OwgvRc2:xuo*A3","fields":{"TEXT":"Home"}}}}}}}}}}},"workspaceId":"iPrb#;sb;^6r2+,s:csw"}To learn more about events and blocks, see Astrato Action Blocks.