Adminlte: [BUG] DataTable pagination button does not responsive on mobile layout

Created on 7 Jun 2020  路  2Comments  路  Source: ColorlibHQ/AdminLTE

If you adjust the screen width below 370px, the pagination buttons do not collapse.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://adminlte.io/themes/v3/pages/tables/data.html
  2. Turn on Chrome Dev mode
  3. Adjust the screen width below 370px
  4. See error

Screenshots
2020-06-07_19-23

Environment (please complete the following information):

  • AdminLTE Version: latest
  • Operating System: Ubuntu 18.04
  • Browser (Version): Chrome (Latest)
bug 3.x

Most helpful comment

You can also override the amount of numbers showing with

$.fn.DataTable.ext.pager.numbers_length = 5;

I would not add a fix for this, to give the users the control over the style.

All 2 comments

Update: this problem already discussed on this post.

Seems like the best solution for now is:

@media screen and (max-width: 450px) {
    li.paginate_button.previous {
        display: inline;
    }

    li.paginate_button.next {
        display: inline;
    }

    li.paginate_button {
        display: none;
    }
}

2020-06-08_10-14

You can also override the amount of numbers showing with

$.fn.DataTable.ext.pager.numbers_length = 5;

I would not add a fix for this, to give the users the control over the style.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

akbajwaakgec picture akbajwaakgec  路  3Comments

REJack picture REJack  路  3Comments

vbetancourt picture vbetancourt  路  3Comments

noblemfd picture noblemfd  路  3Comments

lenamtl picture lenamtl  路  3Comments