Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Add "Responsive" width viewport #223

Open
caseymhunt opened this issue May 21, 2021 · 3 comments
Open

[Feature Request] Add "Responsive" width viewport #223

caseymhunt opened this issue May 21, 2021 · 3 comments

Comments

@caseymhunt
Copy link

It would be helpful to have access to a "responsive" (user-adjustable) width viewport, in addition to the configured widths in the .config file.

Ideally this "responsive" width would be appended to the list of supplied widths and would appear as an additional optional window width in Playroom.

@roddds
Copy link

roddds commented Jun 23, 2021

You can get around that by adding 'calc(100vw - 120px)' to the list of widths, and then resizing the browser window.

@caseymhunt
Copy link
Author

You can get around that by adding 'calc(100vw - 120px)' to the list of widths, and then resizing the browser window.

That's a great workaround- a bit ugly but neat! thank you.

It would be great to be able to mask the css formula with a human-readable name, though.

@askoufis
Copy link
Contributor

Not sure if we'd implement this directly, but with #222 it makes the workaround more viable since you'd be able to rename the width to responsive for example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants