Change column widths of the matrix table when viewed on mobile

  • PeakNutrition
    Asked on August 15, 2018 at 11:37 AM

    Thank you kindly for responding to my previous request and making the relevant amendment to the format of my table.  Unfortunately, although the table now looks how I want it to on tablet and desktop view, when viewed on a smartphone device, the table format is still not correct.


    I hope you can correct this for me as you did my previous request

  • Vanessa_T
    Replied on August 15, 2018 at 12:55 PM

    Please add the following CSS to your current custom CSS.

    @media screen and (max-width: 480px),

    screen and (max-device-width: 767px) and (orientation: portrait),

    screen and (max-device-width: 415px) and (orientation: landscape) {

      .form-matrix-row-headers {

        min-width: 5px;

        width: 5px;

      }

      .form-matrix-row-headers + .form-matrix-values {

        width: 70%;

      }

    }

    Change column widths of the matrix table when viewed on mobile Image 10

  • PeakNutrition
    Replied on August 16, 2018 at 9:31 AM

    Thank you for your reply, however the issue doesn't seem to be resolved when I preview the form as viewed from a mobile device.  Please see screen shot for reference.


    1534426238Screen Shot 2018 08 16 at 13 Screenshot 10

    Thank you for your assistance


    Kevin

  • PeakNutrition
    Replied on August 16, 2018 at 9:34 AM

    When in the landscape orientation it looks fine, but not in portrait.  Also, the sliding scale (0-10) don't seem to be correctly formatted on the portrait orientation.

  • David JotForm Support Manager
    Replied on August 16, 2018 at 11:05 AM

    You may inject the following CSS code: https://www.jotform.com/help/117-How-to-Inject-Custom-CSS-Codes 

    @media only screen and (max-width: 480px) {

    .form-matrix-row-headers, .form-matrix-column-headers {

        width: auto !important;

    }

    .form-matrix-row-headers {

        min-width: 0px !Important;

    }

    }

    Result:

    1534431860form Screenshot 10

    Let us know if you need more help.