Code Monkey home page Code Monkey logo

Comments (12)

alex-shpak avatar alex-shpak commented on July 22, 2024 1

I pushed an updated to set min width to 320px, should be enough for most of devices

from hugo-book.

alex-shpak avatar alex-shpak commented on July 22, 2024

Hi!

Which device and android version you use for test?
I targeted minimum screen width as 400px, also there is required meta tag here

Do you, by chance, set font/view scaling in android?

from hugo-book.

alex-shpak avatar alex-shpak commented on July 22, 2024

From screenshot looks like it's header getting out of screen, right?
Blocks of code are scrollable horizontally, and this is intentional

from hugo-book.

caseneuve avatar caseneuve commented on July 22, 2024

The smaller one is Huawei ALE-L21, Android 6.0, bigger is Huawei RNE-L21, Android 8.0.0.

I made another screenshot where the problem is more obvious. Look for example on phrase "arma sorori" or "vetuere aliis, modo":

hugobookvert2

So it's header and body text which don't scale.

I don't recall setting any font/view scaling in my devices.

from hugo-book.

caseneuve avatar caseneuve commented on July 22, 2024

Update: the issue concerns Firefox browser, on Chrome I can scale down manually.

from hugo-book.

caseneuve avatar caseneuve commented on July 22, 2024

To have proper rendering in Firefox I have to enable scaling fonts to system fonts in the browser settings and set the system font size to "small".

from hugo-book.

alex-shpak avatar alex-shpak commented on July 22, 2024

I see, I will try to reproduce.

from hugo-book.

bubbleguuum avatar bubbleguuum commented on July 22, 2024

Same issue on Samsung devices with Samsung Internet as browser: the page is truncated a bit to the right and you can pinch to zoom out and see the full page fitting exactly screen width. Not super practical though because you have to do it for every page (using the demo site for testing).

from hugo-book.

alex-shpak avatar alex-shpak commented on July 22, 2024

I have a suggestion, it might be due to pixel ratio. For example, right now minimal width is set to 400px, screen of test device is 720px with pixel ratio 2, which will make effective rendering into 360px

This is how it looks on 360px
image

Quite similar. I will try to confirm this.

from hugo-book.

bubbleguuum avatar bubbleguuum commented on July 22, 2024

Yes it looks exactly like this on my Samsung S9.

from hugo-book.

caseneuve avatar caseneuve commented on July 22, 2024

@alex-shpak #27 seems to solve the problem in all my devices, both in Chrome and Firefox, thanks.

from hugo-book.

alex-shpak avatar alex-shpak commented on July 22, 2024

👍 I will close then, feel free to re-open if it pops up again.

from hugo-book.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.