Site logo

Archived topic

Mobile to Tablet transition

4 replies · Started by Luis on May 28, 2021

Viewing posts 1–5 of 5

Hi guys,

Amazing job keeping up with all the support questions.

I'm a happy tipper btw.

Currently when I check the front page on a mobile (540px width) it looks as I planned, but when I rotate it to landscape (960px) it trys to make the mobile view still work, when it's probably best to switch to Tablet design.

I'm not sure where to fix this, taking into account the extra CSS for that front page.

This is the extra CSS for reference

@media (max-width: 768px) {

    #wpsp-2048 .wp-show-posts-columns {
        margin-left: -20px !important;
    }

    #wpsp-2048 .wp-show-posts-inner {
        margin-left: 20px !important;
    }    

    .wp-show-posts-columns#wpsp-1987 {
        flex-direction: column;
    }

    .wp-show-posts-columns#wpsp-1987 .wp-show-posts-single {
        width: 100%;
    }

    .wp-show-posts-columns#wpsp-1987 .wp-show-posts-inner {
        display: flex;
        flex-direction: row-reverse;
        margin-left: 20px !important;
        margin-bottom: 20px !important;
    }
    /* Set Image width */
    .wp-show-posts-columns#wpsp-1987 .wp-show-posts-image.wpsp-image-center {
        flex: 0 0 40%;
        margin-left: 20px;
    }
   

    .wp-show-posts#wpsp-4407 .wp-show-posts-inner {
        display: flex;
        flex-direction: row-reverse;
        margin-left: 20px !important;
        margin-bottom: -20px !important;
    }

    .wp-show-posts#wpsp-4407 .wp-show-posts-image.wpsp-image-center {
        flex: 0 0 50%;
        margin-left: 20px;
    }

}

Hi guys,

A little bit more info if it helps...

First noticed the issue on an iPad 10.5" (screenshots attached).

Mobile menu breakpoint is set to 768px now (was 1040px before) however this doesn't seem to have helped, after clearing the cache.

I think I may need to edit the additional CSS (originally recommended 4 or 5 months ago) to fix this but am a bit out of my depth on where to start.

On mobile, the page/code doesn't seem to recognize when the screens been rotated. On the iPad it recognizes the tablet as it hides the second wp_post section but still applies the additional CSS. Interestingly on Android tablet I don't see the same issue as the iPad.

Please let me know if this is an easy fix or requires outside help.

Thanks guys

Hi there,

i seen this once before ... but can't recall what the issue was... difficult to debug as i tested on a new ipad and iPhone 12 and the CSS does apply on rotation of the screen....

Hi David,

Thanks for having a look at it.

Setting the max-width to match the mobile breakpoint actually did seem to correct some of the previous odd rendering so I'll leave it as this for now.

Cheers

Glad to hear that!

This archived topic is closed to new replies.