Site logo

[Resolved] wrap list on mobile not working

Home Forums Support [Resolved] wrap list on mobile not working

Home Forums Support wrap list on mobile not working

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2485725
    Ann

    Hello
    I have a problem with the list feature. It is showing perfectly on desktop. On my mobile the list don’t wrap and the design shows outside the container. I have tried to wrap on the mobile icon – without any success. Can you please guide me, so I can solve this?

    You can see my page with the issue her: https://shanayatemplet.dk/sjaelehealing/

    Kind regards Ann 🙂

    #2485763
    David
    Staff
    Customer Support

    Hi there,

    so the block plugin you’re using, its container (?) block is throwing this CSS at anything you add inside it:

    body .wp-block-uagb-container > .uagb-container-inner-blocks-wrap > :not(.wp-block-uagb-container):not(.wp-block-uagb-column):not(.wp-block-uagb-container):not(.wp-block-uagb-section):not(.uagb-container__shape):not(.uagb-container__video-wrap):not(.wp-block-spectra-pro-register), body .wp-block-uagb-container > .uagb-container-inner-blocks-wrap, body .wp-block-uagb-container > :not(.wp-block-uagb-container):not(.wp-block-uagb-column):not(.wp-block-uagb-container):not(.wp-block-uagb-section):not(.uagb-container__shape):not(.uagb-container__video-wrap):not(.wp-block-uagb-image):not(.wp-block-spectra-pro-register) {
        min-width: unset !important;
        width: 100%;
    }

    So your UL list block is forced to be 100% wide, which doesn’t take into account that elements such as lists have margin or padding. Its not very good CSS and is something the plugin developer should address.

    For the time being, try adding the CSS to your site:

    
    body .wp-block-uagb-container > ul {
        max-width: calc(100% - 3em);
    }
    

    OR you may want to consider using a GenerateBlocks Container Block instead, we don’t add CSS that affects the nested blocks styles 🙂

    #2485857
    Ann

    Thank you for explaining to me. That resolved it. Have a nice weekend 🙂

    #2486089
    David
    Staff
    Customer Support

    Glad to be of help!

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.