artyom-beilis / skyhopper

GNU General Public License v3.0
65 stars 22 forks source link

On iPhone SE 3rd GEN application font defaults to serif (Times New Roman or similar) #26

Open PolishPianist opened 3 months ago

PolishPianist commented 3 months ago

On both Chrome and Safari the app seems to display serif font, making it extremely difficult to use, even with the font enlarged.

AstroHopper - Web Application for Sky Navigation IMG_E82F3FA62545-1

artyom-beilis commented 3 months ago

Honestly I don't understand why is it hard to use... Serif fonts look perfectly nice (while indeed it should be sans)

I don't own iPhone myself. I hope one of the users who know JavaScript/CSS can submit me a fix.

PolishPianist commented 3 months ago

Thank you for replying. It may look nice when your vision is good and your phone screen is big enough. That is not my case unfortunately. And I'd love to use and contribute to this great app. While I'm not versed in programming, I got this snippet from ChatGPT. Maybe it will be useful. Maybe not. So here it is:

To solve the issue of the default serif font on your iPhone when accessing the Astrohopper web app, you can provide the author with a small CSS snippet that forces the application to use a more readable sans-serif font across the app. This can be applied globally, ensuring that the text is more accessible on smaller screens like your iPhone. Here's a simple CSS code snippet that you can provide to the author:

/ Force a default sans-serif font across the web app / body, html, p, h1, h2, h3, h4, h5, h6, div, span, a, li, ul, input, button, label { font-family: Arial, Helvetica, sans-serif !important; font-size: 16px; line-height: 1.5; }

/ Adjust font sizes for better readability on small screens / @media only screen and (max-width: 600px) { body, html { font-size: 14px; } }

Explanation:

I can further refine it in my GPT chat thread if necessary.

artyom-beilis commented 3 months ago

I got this snippet from ChatGPT. Maybe it will be useful...

You know what is the problem?

PolishPianist commented 3 months ago

I see. I don't know how all these projects work here on github, but if you wanted - I coud be a beta-tester with an iPhone if you ever make these changes :-)