• Resolved obegu2001

    (@obegu2001)


    Hello.
    I am considering if I will be using responsive tablepress but I have some problems.
    1) Normally, the bottom of the table with the text “previous and next” shows the “successivo” link in black, and with a black background it is not readable.
    2) in a responsive mode (flip mode) since I added some buttons in javascript (Gumroad) the height of the lines does not adapt to the content (as it happens in normal mode on PC)
    3) In a responsive mode the wrap text (a capo) doesn’t work and the long text line disappears behind the next cell
    Is there a css code that I can add to improve and use? Thanks and congratulations for your work!

    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 question, and sorry for the trouble.

    1) To fix this, you can set a different color with CSS code. For that, please add this to the “Custom CSS” textarea on the “Plugin Options” screen of TablePress:

    .dataTables_paginate a {
        color: #ffffff !important;
    }

    2) For that, please add this to the “Custom CSS” textarea on the “Plugin Options” screen of TablePress:

    @media (max-width: 979px) {
        .tablepress-id-4 .column-6 {
            height: 68px;
        }    
    }

    3) I’m not sure what you mean. In the flip mode, automatic line breaks are turned off by design. Please also try adding

    @media (max-width: 979px) {
      .tablepress-id-4 {
        width: 100%;
      }
    }

    to override the width that you are setting.

    Regards,
    Tobias

    Thread Starter obegu2001

    (@obegu2001)

    Thank you Tobias! You are my Hero 🙂 Tonight I will consider making a donation!

    1) and 2) now are perfect!
    3) I try to explain better. The problem is the long lines of text that are not shown. I didn’t know that the automatic line breaks option was turned off by default in flip mode.
    If I manually add a break in the long text lines, I also see it in the responsive, but the header cells do not fit the measure of the cell with break line.
    Example cells with line breaks

    If I don’t add the break it appears as an example
    Example cells with no breaks

    Can I resolve this?

    Thank you.
    All the best
    Bob

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi Bob,

    good to hear that this helped!

    And thanks for the explanation on 3)!
    If you want to use manual line breaks, you’ll essentially have to set a row height as well, just like in the CSS code for the buttons (just with the other columns names).
    The problem with the cells being cut off is caused by setting the columns widths. You should only do that (for all columns!) when the screen size is large enough:

    @media screen and min-width: 980px {
      .tablepress-id-4 .column-1,
      .tablepress-id-4 .column-2,
      .tablepress-id-4 .column-6 {
        width: 200px;
      }
    }

    instead of what you have now for the column widths.

    Regards,
    Tobias

    Regards,
    Tobias

    Thread Starter obegu2001

    (@obegu2001)

    Hi Tobias. Thank you for your support!
    I tried using your latest script, but while it worked fine in responsive, in normal mode the columns were too narrow on the PC screen and the Gumroad button was out of proportion.
    I therefore preferred to follow your other suggestion: I inserted line breaks in the cells and I changed the height of the row in the responsive.
    Everything works fine!
    Best regards.
    Bob

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    this is in principle caused by the narrow content width of your theme. It’s not giving the table enough space.
    But good to hear that you found a working solution now!

    Best wishes,
    Tobias

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

The topic ‘Tablepress responsive problem on row’ is closed to new replies.