Thanks. I have my test site thats already updated. When I view it from chrome mobile my regular site is locked vertical (how my phone is setup) but the updated test site changes direction to horizontal when I turn on the phone. Is there a setting for this? Its not a chrome issue as both are thru chrome. Its a pain to have it turn when I want to view it while laying down.
Nope there is not a site setting for this, as you can see here
https://github.com/discourse/discourse/blob/master/app/controllers/metadata_controller.rb
orientation is set to ‘any’.
Is there anyway to edit this everytime I need to update? Doesnt make any sense to have horizontal view when the mobile design is how it is. You cant see anything and I dont want to use it with this cause its annoying to keep the phone from switching constantly.
Why is the device switching constantly? Hold it in vertical (portrait) mode if you want portrait.
Because like most people I browse my phone while laying down on the couch or doing other things. I dont want to play games with the browser setting, If I wanted horizontal I would allow my phone the option of going horizontal. Setting a site to all doesnt allow this to lock on portrait.
Its really annoying that I wont even go on my own forum because I cant browse it properly when laying down. I dont just stay on my forum from 9-5 at a desk. For the sake of community interaction I think it would be nice to have the feature to lock it to portrait or give us a way to do that
Have you tried this as a theme component?
Thanks. Just tried it. Doesnt work.
I have never seen that. I lock my phone vertical and have never seen a Discourse site not display the way that I expect when I have phone sideways when I am lying down (which it seems only you and I do).
Have you got some theme on your site that’s breaking that somehow? Have you tried safe mode?
No theme breaking it. I have 2 forums up right now and a test one. Only the updated 2 do this. One of them was a mirror I use Digital Ocean to restore from a snapshot of my older one. Then I updated the new one. The old one still stays vertical if my phone is locked vertical.
We used to lock rotation when you used the Add to Home screen on Android and got complaints from users.
So we don’t do that anymore. If you want to lock rotation use the OS option on the quick settings tile.