You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
frontend/android: capture textzoom and set custom base font size
Android textZoom only increases font-size without incresing
surrounding elements which can break the layout and cause
overlapping text and elements.
This commit reads the current textzoom, sets a custom CSS base
font size (calculated from textzoom) and resets textzoom to 100%.
The custom CSS is using 'The 62.5% Font Size Trick' with which
1rem equals 10px.
With this it is possible to change elment dimensions from px to
rem. These elements will become responsive and also grow if
Android settings for font size is increased.
To simulate this in webdev and optimize the layout for increased
fontsize a base font size of 125% has to be set.
0 commit comments