daniel-nagy / md-data-table

Material Design Data Table for Angular Material
MIT License
1.9k stars 519 forks source link

pagination display issue on small devices like nexus 4 #286

Open wizjack opened 8 years ago

wizjack commented 8 years ago

Having problem with pagination in 0.9.10. on small devices. Attached is the screen grab

image

mkranjan commented 8 years ago

Am also facing the same issue, how to disable the label from pagination

jimmyn commented 8 years ago

Same for me

mrtnjln commented 8 years ago

:+1:

hectorgr commented 8 years ago

Try use this at the end of your CSS @media screen and (max-width: 460px) { .md-table-pagination { display: table !important; margin: 10px auto; padding-top: 10px; } .md-table-pagination .label, md-table-pagination .md-table-select { display: table-header-group !important; } .md-table-pagination .label { text-align: center; } .md-table-pagination .md-table-select .md-select-value { margin: 0 auto; width: 60px; text-align: center; } .md-table-pagination .md-button:nth-of-type(1) { margin-left: 0 !important; } }

simonmorley commented 8 years ago

@hectorgr That CSS makes things much worse unless you're after a pyramid of pagination ;)

simonmorley commented 8 years ago

I've opted to remove the labels completely which is 100% naff but nicer than what was occurring before.

@media screen and (max-width: 460px) {
  .md-table-pagination .label { display: none; }
}
hectorgr commented 8 years ago

Since version 0.10.4 this isn't necessary because this problem was fixed.

simonmorley commented 8 years ago

Just checked my bower conf and it was fixed to .9.

Looks OK to me on latest.