Overview
The canvas is currently 10k2 pixels. This means that it is possible to scroll WAY off to the corner of the canvas and then it's tricky to navigate back to the content.
Proposed resolution
The canvas size should be dynamically set. For the UX to feel nice and users not to feel limited, it needs to be big enough that you can scroll up/down/left/right far enough to almost scroll the preview's off the opposite side of the screen.
The calculation would need to take into account the size of the user's current browser viewport, the size of the left and top toolbars, the height of the tallest preview iFrame (the canvas must always be taller than the iframes) and the total size of all the preview viewports the user is viewing (the ability to show a dynamic number of viewport sizes is coming later).
Ideally it should automatically resize if the browser window is resized and also as the size of the iFrames increase/decrease as their content is changed or the number/size of viewports displayed is updated.
User interface changes

Example of the furthest amount a user should be able to scroll to the top left

Example of the furthest amount a user should be able to scroll to the bottom right
| Comment | File | Size | Author |
|---|---|---|---|
| Drupal_Experience_Builder_and_Untitled.png | 85.54 KB | jessebaker | |
| Drupal_Experience_Builder_and_Untitled.png | 86.26 KB | jessebaker |
Issue fork experience_builder-3469894
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
wim leersComment #3
jessebaker commentedComment #6
gauravvvv commentedComment #7
lauriiiComment #8
wim leersThere's now a conflict 😭
Comment #9
gauravvvv commentedComment #11
jessebaker commentedThis is great stuff! I'm merging asap because I have a MR in review that I will likely need to adapt slightly to take this into account!
Comment #12
wim leersNice! 🤩