-
Notifications
You must be signed in to change notification settings - Fork 27
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
Mobile view is far too zoomed in (Server — iPhone 6S iOS 14.3 odysseyn1x SMServer 0.7.1, client Samsung Galaxy S10e OneUI 2.5 Brave mobile browser) #79
Comments
Wow uh yeah that is definitely not good; I'll look into that and should have it fixed by next update. I think it's due to the reactions; they seem to mess up vertical spacing. |
Alright, I think I've got this fixed up. It just required a single css rule, interestingly enough ( |
This issue should be fixed with version 0.7.2 -- could you try it out and let me know if you're still running into the same issues? |
So one thing I noticed is that no matter which mobile Android browser was used, all individual chats are zoomed correctly, but all group chats start out zoomed correctly, then quickly zoom in to a (usually) unusable aspect ratio. FireFox was the only browser that allowed me to zoom out. Blurry text occured on all browsers except FireFox and Edge. On Chrome the exact same thing happened as Brave, which is to be expected as Brave is based on Chromium. FireFox was almost perfect, it still did zoom in on the group chat, but I was able to zoom out. Unfortunately, while all the other browsers made it appear as SMServer was made to run on my phone's aspect ratio, FireFox's aspect ratio made me feel like it was optimized for a tablet (small text, wide conversation body). I could zoom out to see about 95% of the conversation screen which was very nice. Also, no blurry text on FireFox. Cake was a horrible experience, it was just about unusable. On top of the zoom in, the screen also constantly flickered black. On other devices (even desktops), I get occasional flickers while scrolling, but it usually isn't too noticeable or annoying. On Cake, however, they were all over the place, even when I wasn't touching the screen. I assume the DuckDuckGo browser is also based on Chromium as I had the same results as Chrome and Brave. Edge was surprisingly alright. I say surprisingly because I've considered Microsoft browsers a joke since IE7, but this reminded me to not judge a book by its cover. Edge zoomed in to the left side of the screen and didn't allow me to zoom out. However, the left side of the screen is where my friends' messages and the exit arrow are, so it's pretty good. Not perfect but compared to the other browsers it's an easy second. It beats FireFox in that the aspect ratio is appropriate for my phone, but FireFox wins overall because it can zoom out. I didn't test Opera because a long time ago I read that they have shady practices, and I used ADB commands to remove all the Samsung bloatware from my phone, so I didn't want to reinstall Samsung Internet in case I had to run that uninstall command again. Overall, I guess the problem persists in all browsers (even though I could zoom out in FireFox, I couldn't zoom out all the way), but some handle it better than others. Chromium browsers do pretty poorly and I wish I hadn't even tested cake, but I hope these tests are helpful. Maybe other SMServer Android users can help test too? |
Man, I really appreciate all of this. I released this latest version after only having tested the mobile web interface on an apple device; don't know why I didn't verify it was working fine on an android as well. I also remembered I have an old google nexus phone sitting around, so I booted that up and am running into the same issues on its browser. This may be somewhat difficult to debug (since afaik I can't exactly open up inspect element on a mobile browser on android) but I'll definitely poke around more and figure out exactly why it's being like this. Also this pixelation thing is just super weird -- what in the world makes random text appear super pixely? I've never run into anything like this before. |
I was able to type in "view-source:" before my SMServer URL on my phone and get an inspect element like menu, let me know if this is helpful. |
So I've been poking around with this a bit (apparently chrome has a remote debugging tool so that you can inspect webpages on devices connected via usb, so I've been using that with my old android phone), and I cannot for the life of me figure out what's causing it. Random texts (not conforming to any pattern that I can discern) have significantly larger text (the size of which text also varies) than all other texts, even when removing all CSS attributes that affect these texts. Also, I'm still seeing it sometimes become pixely after scrolling for a bit, but I can't find anyone else on the internet who's run into this same thing, so I'm not quite certain how to go about trying to fix it. I'll keep this task updated if I find something more, though. |
It seems like a "fix" for all these bugs (including #87) is to first go into SMServer in landscape mode, then switch to portrait. I've attached images of what it looks like when starting in portrait and switching to landscape, and vice versa. |
That may fix it, but it also brings it back into a regular desktop view, which I'd like to only show on desktop. However, I think I may have just found solutions to all the mobile issues -- both this and #87. It's just a bit of css & js: text {
text-size-adjust: none !important;
}
#sendbox, .subjectSubject {
max-height: 30vh !important;
}
#camerarollbutton, #unhiddenbutton {
margin: auto 0 !important;
} and then comment out the |
Alright, as of version 0.8.0, this host of issues should be fixed. Closing. |
#87 (comment) |
There were multiple bugs with the web interface on mobile discussed in this issue. Do you think you could be more specific about exactly what bug you're running into and share an image of it, if possible? |
Yes. There is no more blurry text on Android or overlapping text on iOS. Individual chats on Android look great, but group chats on Android are too zoomed in. |
Thank you for the mobile enhancements! The chat history view looks great. Unfortunately, entering a chat leaves it far too zoomed in, and some other things such as the compose new message box aren't in a good spot or view
The text was updated successfully, but these errors were encountered: