Bricks Version: 1.6.1 Browser: Android (not sure about ios) OS: Various mobile browsers (but some are worse than others)
Hey all,
Firstly, I hope you all had a fabulous Christmas and new year!
I messaged the Support email twice using different accounts (just in case there was an issue with one going through) about 4 or 5 days ago but had no response. I also direct messaged @timmse 3 days ago and had no reply eitherâŠvery strange. (perhaps @luistinygod@thomas are on leave?)
Anyways, has anyone experienced corrupt output on mobile in terms of text breaking into two lines or text being different sizes even though it is the same size in the builder? Equally, the builder shows the correct size on the mobile viewing panel, but on the phone itself, it isnât correct.
But please find two video recordings; the first is a side-by-side where I display the builder and my mobile mirrored. The Second is a screen recording directly on my mobile (sound quality is better, for better understanding).
All looks fine on my mobile device and when running the page through browser testers, most likely cause is just caching on your mobile so youâre seeing an older version of the stylesheet when the text was perhaps larger.
When I inspect the code through my mobile, the exact same CSS is being applied to both texts. (the font size being --fs-base which is clamp(1.6rem, 0.3vw + 1.49rem, 1.9rem)
Note that âvwâ means viewport width, so thereâs always going to be some tiny difference on the size based on the different screen widths. But no difference between the two different paragraphs that you pointed to.
For Mac/iPhone I just plug it the iPhone into my MacBook and use devtools through Safari to inspect it through the phone, but this specific issue canât be seen on iPhone anyway. Iâm not sure about other mobile devices, if they have similar dev-tools capabilities with PCs.
Hey Mick,
The problem may be related to your font size settings on your Android device. In the past, there were problems with Android phones that enlarged or reduced text at will. I canât say for sure if this is still the case, as I am also an iPhone user. But maybe this thread on StackOverflow will help:
I do not think that would be the issue, as that would most likely apply to all the text and not random pieces.
Equally, the other part is the strange letter & word breaks found mainly in the footer (thus why I originally titled the ticket a little more vaguely and not just related to font size).
I am trying to find some patterns, and from what I can see, it seems to be an issue with the basic text element. (Font size and random breaks). It does also seem to affect the icon box and list element too. However, the Rich text element seems to work 100%
Hopefully, that will give you a starting point.
I am not sure if you guys have a BrowserStack subscription as part of your debugging stack, but I have DM you a new login link that might uncover something.
To inspect using dev tools through Chrome on your computer, to see what CSS is being applied when the site is being viewed on your android device. If thereâs some default browser CSS there, youâll see it when inspecting the element.
Just checking up on this as noticed no one logged in the last 7 days after granting access to your location.
Either way, managed to uncover more solid information thanks to @wplit solution. You can see from the screen recording that it is being computed differently. It turns out the smaller text is actually correct and its the larger text that is wrong (so most of the site is wrong on mobile haha).
Anyways, please find a local screen record which I had to upload to my one drive to share.
I donât know why it would be targeting all the text apart from the text inside the links, but this is very likely what is happening as the official definition of what that CSS property does describes what youâre experiencingâŠ
âThe text-size-adjust CSS property controls the text inflation algorithm used on some smartphonesâ
I havenât because there is no pattern of what is affected, It targets text in and outside of links. So it would be strange that that would be the cause.
Happy to check this; however, What would you advise I add this to make it site-wide? Would I have to target each root HTML such as this?
I finally managed to take a look at this. I connected my Galaxy Tab via USB debugging. The result is that the font sizes differ.
But: this is definitely related to the fluid font-sizes (clamp) and potentially other factors. If I remove the body font variable and set it to a fixed font-size (or leave it blank), everything is fine.
I suspect that the clamp function on Android just works a little differently in certain scenarios. I canât say why, but when I use the same clamp function on any of my sites, the font size is the same everywhere. So there seem to be some other factors (flex? padding? margins? min, max, whatever) at playâŠ
Maybe you can reproduce the problem in a very simple installation without much bells and whistles?