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

Cut screen on mobile #100

Open
Tau5 opened this issue Feb 10, 2018 · 3 comments
Open

Cut screen on mobile #100

Tau5 opened this issue Feb 10, 2018 · 3 comments
Labels

Comments

@Tau5
Copy link

Tau5 commented Feb 10, 2018

https://i.imgur.com/0DtrD34.png

@1j01
Copy link
Owner

1j01 commented Feb 11, 2018

Yeah, it's the same on my phone; I have to use portrait mode.
Currently there are media query rules that hide components when the view is small enough:

@media (max-width: 300px) {
.horizontal > .component-area {
display: none;
}
}
@media (max-height: 340px) {
.vertical > .component-area {
display: none;
}
}
@media (max-height: 370px) {
.vertical > .status-area {
display: none !important;
}
}

Win7 paint hides (and compacts) UI elements at lots of points, which is probably why I went with that option.
Win98 has a minimum window size, which is not something we can do, and indeed it would be nice to support this viewport size/orientation which is smaller than Win98 paint allows.

I could add an option in View to Go Fullscreen, but I don't think that would be enough. I think we'd need to do something like make a vertical mode for the color palette component, or support mixing up the structure of the sidebars so that instead of the palette going underneath the toolbox:

It could go beside it to be more vertically compact (don't mind the lack of scrollbars):

I'm not sure what the best course of action is here. It could have a more advanced system for rearranging the UI like some IDEs have, or just a special case for when the components don't fit that triggers it to rearrange things (probably via JavaScript, not CSS)

@1j01 1j01 added the mobile label Mar 30, 2018
@lafoxxx92
Copy link

Adjust your browser's text size (set to Tiny)

@1j01
Copy link
Owner

1j01 commented Dec 9, 2021

You have a few options now:

  • You can use View > Fullscreen to hide the address bar and notifications bar; on my phone this lets the color box show
  • If that works for you, you can add JS Paint to your home screen, and when you launch it it will be fullscreen (except maybe for the notifications bar...)
  • You can make the color box vertical in Extras > Vertical Color Box
  • You can use the app in vertical orientation (portrait)

but something that works automatically would be best.

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

No branches or pull requests

3 participants