• Resolved wildcheese

    (@wildcheese)


    Hi,

    On desktops Sticky List appropriately shows all info, however in responsive mode (on mobile devices) much of the content is cut off on the right margin – the effect being that people can’t see the Action Buttons. Depending on the device’s screen size the amount of “cut off” is different. Is there a way to make Sticky List scroll-able?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author fried_eggz

    (@fried_eggz)

    Sure. Try this CSS:

    <style>
    .sticky-list-wrapper {
        overflow: scroll;
    }
    table.sticky-list {
        table-layout: auto;
    }
    </style>
    Thread Starter wildcheese

    (@wildcheese)

    Ok so putting that in my child’s class.css had the effect of putting the scroll bars on the right side and the bottom of all the tables while in desktop mode – but for responsive mode on my phone it did nothing.

    I investigated my theme and found a responsive.css file that specifically called out different screen sizes and retina displays.

    I ended up using the following code in my child class.css and now the tables are all scrollable just for mobile users!

    Thanks for the help getting me started fried-eggz, love your plugin!

    /* Prevents Sticky List from extending past the right margin */
    @media only screen and (min-width: 1440px) {
    .sticky-list-wrapper {
    overflow: scroll !important;
    }
    table.sticky-list {
    table-layout: auto !important;
    }
    }
    @media only screen and (min-width: 1025px) {
    .sticky-list-wrapper {
    overflow: scroll !important;
    }
    table.sticky-list {
    table-layout: auto !important;
    }
    }
    @media only screen and (min-width: 1024px) {
    .sticky-list-wrapper {
    overflow: scroll !important;
    }
    table.sticky-list {
    table-layout: auto !important;
    }
    }
    @media only screen and (min-width: 950px) {
    .sticky-list-wrapper {
    overflow: scroll !important;
    }
    table.sticky-list {
    table-layout: auto !important;
    }
    }
    @media only screen and (min-width: 767px) {
    .sticky-list-wrapper {
    overflow: scroll !important;
    }
    table.sticky-list {
    table-layout: auto !important;
    }
    }
    @media only screen and (min-width: 600px) {
    .sticky-list-wrapper {
    overflow: scroll !important;
    }
    table.sticky-list {
    table-layout: auto !important;
    }
    }
    @media only screen and (min-width: 540px) {
    .sticky-list-wrapper {
    overflow: scroll !important;
    }
    table.sticky-list {
    table-layout: auto !important;
    }
    }
    @media only screen and (min-width: 320px) {
    .sticky-list-wrapper {
    overflow: scroll !important;
    }
    table.sticky-list {
    table-layout: auto !important;
    }
    }
    @media only screen and (-Webkit-min-device-pixel-ratio: 1.5),
    only screen and (-moz-min-device-pixel-ratio: 1.5),
    only screen and (-o-min-device-pixel-ratio: 3/2),
    only screen and (min-device-pixel-ratio: 1.5) {
    .sticky-list-wrapper {
    overflow: scroll !important;
    }
    table.sticky-list {
    table-layout: auto !important;
    }
    }

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Sticky List extends past right margin’ is closed to new replies.