Buttons resize on Parent Child datatables example

Buttons resize on Parent Child datatables example

lowrymellowrymel Posts: 27Questions: 6Answers: 0

How would I stop the buttons on a resize in the Parent Child example from using all available space?
Example - this looks great

But this would look better (in my opinion) if the buttons maintained the same size in the previous screen clip and were displayed centered.

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 65,467Questions: 1Answers: 10,874 Site admin
    Answer ✓

    The Buttons are actually 100% width in both cases. The change is that the container gets suffled around from columns to what looks like rows.

    So what you could do is add something like this to your CSS:

    @media (min-width: 576px) {
      div.DTE_Field div.dt-buttons {
        max-width: 300px;
      }
    }
    

    Allan

  • lowrymellowrymel Posts: 27Questions: 6Answers: 0

    That works great. Thanks!

Sign In or Register to comment.