Tagged: mobile
-
AuthorPosts
-
July 30, 2021 at 11:21 am #1313425
Hello, Kriesi Team,
the resolution of phone screens has increased significantly over the past few years. Today I have added some rules to the site for responsive layout. I’ve noticed that a pretty large percentage of visitors, mostly students, use phones in landscape.
The problem only arises at higher resolutions, e.g. my Samsung Note 8 with 850px in landscape is already seen as a tablet, but if the device is less than 550px in portrait then it’s not appropriate to display the standard large menu. I suppose it’s not just a CSS thing, but also a JavaScript thing. Is any way, how to switch to hamburger menu in version 4.8.1 ?
For those who are interested, here is the CSS code to disable the Sticky menu. However, the usability of the dropdown menu is still lousy.@media only screen and (max-height: 550px) { .html_header_top.html_header_sticky #header { position: relative; } .responsive #main { padding-top: 0px !important; } }
July 30, 2021 at 11:30 am #1313428One more related hack: let’s display small blogpost images in landscape mode.
@media only screen and (max-height: 400px) { .responsive #top .fullsize .template-blog .big-preview img {height: 100px; width: auto;} }
- This reply was modified 3 years, 3 months ago by norbou.
August 2, 2021 at 4:13 am #1313785Hi norbou,
Thanks for sharing your code. I’m not sure if you have problem which you need help with though?
Best regards,
RikardAugust 2, 2021 at 2:27 pm #1313934What I don’t know is how to change conditions for switching to responsive mobile hamburger menu. Current rules are not checking device height. Is it possible to modify individually? But this is general improvement, it can be implemented generally.
August 6, 2021 at 10:07 am #1314789Hi,
Thank you for pointing at this.
I added it to our dev repo – but at the moment I cannot provide a quick solution and no ETA for a possible implementation. There are too many things to take care of and this needs testing.
Did you check https://stackoverflow.com/questions/19837035/media-queries-check-min-height-and-min-width ?
Maybe this helps you to find a solution for your install.
Best regards,
GünterSeptember 8, 2021 at 5:44 pm #1320123Hi,
For the next release I added a new theme option:
“Main Menu -> Menu Handling for Mobile Devices In Landscape Mode”
This allows for mobile devices to keep burger menu also in landscape mode if portrait mode screen width has a burger menu.
If you would like to have a beta release to test let us know please.
Best regards,
GünterSeptember 16, 2021 at 10:34 am #1321180Thank you Günter, that’s perfect!
September 17, 2021 at 1:19 pm #1321378 -
AuthorPosts
- You must be logged in to reply to this topic.