• Resolved odoro2020

    (@odoro2020)


    Hi, I am trying to create a page showing the restaurant menu, however when I try to view the page in mobile view, the table is way too large and goes outside the page.

    I am using the Divi theme.

    https://www.oceanodoro.it/menu2/

    What do you recommend to do? I have tried with [table id=22 responsive=”scroll”/] but it does not work. Thanks for helping.

    • This topic was modified 5 years, 5 months ago by odoro2020.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    The cause for this is that many cells in the second column have very long words (actually groups of words that are combined with a comma, but no space after it). This then makes the browser treat these as a very long word.

    We can however adjust this with slightly different “Custom CSS”. Please replace

    .tablepress-id-22 tbody td {
    	font-family: Tahoma;
    	font-size: 14px;
    	color: #ffffff;
    	background: none;
    	border: none;
    	word-break: break-word;
    }
    
    .tablepress-id-22 .column-2 {
    	font-weight: bold;
    }

    with

    .tablepress-id-22 tbody td {
    	font-family: Tahoma;
    	font-size: 14px;
    	color: #ffffff;
    	background: none;
    	border: none;
    
    }
    .tablepress-id-22 .column-2 {
    	font-weight: bold;
    	word-break: break-word;
    }
    .tablepress-id-22 .column-3 {
    	white-space: nowrap;
    }

    Note that the scroll parameter is not working because you have not installled and activated the TablePress Extension from https://tablepress.org/extensions/responsive-tables/
    Once you do that, you could use this. The stack mode might in fact work even better.

    Regards,
    Tobias

    Thread Starter odoro2020

    (@odoro2020)

    Thank you, it worked wonderful. Just another question, I have noticed that I see a “Unable to preventDefault inside passive event listener due to target being treated as passive.” error in the console, any idea what it’s causing it?

    • This reply was modified 5 years, 5 months ago by odoro2020.
    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    good to hear that this helped! 🙂

    No, sorry, I don’t know what’s causing that other error, sorry.

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

    Thread Starter odoro2020

    (@odoro2020)

    No worries, I’ll look deeper to find a solution 🙂 I left a review! Thanks!

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    if you find something, please let me know!

    Best wishes,
    Tobias

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

The topic ‘Table too large (Media devices)’ is closed to new replies.