React-table: Tall pagination section

Created on 26 Apr 2017  路  12Comments  路  Source: tannerlinsley/react-table

For some reason the pagination section at the bottom of the table is really tall. I'm probably doing something wrong.

This element has a style height of 100% but I can't figure out what's causing it to be so tall

<button type="button" disabled="" class="-btn" data-reactid="228">Previous</button>

When I use it as a component in StoryBook it looks fine. Is some other css I have messing with it?

react-table

Most helpful comment

Still had this issue. The auto button height fix from @helsont worked:

.ReactTable .-pagination .-btn {
    height: auto;
}

All 12 comments

You are likely putting a height on the table element which is forcing it to stretch since its built with flex box. Remove any height related styles from the table and it should function properly.

I'm experiencing the same issue and I'm not tampering with any of the React Table css
screen shot 2017-05-11 at 1 21 39 pm

Is container-fluid a flex element? If this is still happening for whatever reason, you can put a flex-grow: 10000 or some other very high number on the rt-table element.

Here's container-fluid. Nothing too crazy going on and no flex either.
screen shot 2017-05-11 at 2 38 27 pm

I tried your suggestion and it didn't work - nothing changed. Also, I tried making container-fluid a flex element with flex-direction: column and it didn't help either.

What should I look out for in my CSS?

I found the "issue".
screen shot 2017-05-11 at 2 42 36 pm

I removed the height:100% from the pagination button class and it worked perfectly. Is it something I should override in my CSS?

@helsont that did it for me as well.

Does that change affect any of the examples? If not, please submit a PR :)

Fixed now.

Still seeing this.

Still had this issue. The auto button height fix from @helsont worked:

.ReactTable .-pagination .-btn {
    height: auto;
}

Thank you @alexkindel, I ran into this issue tonight and your solution worked best for me.

I found the issue,but not am not able to override the value. The default value 100% shows when I run it how can I do this to override it to this
.ReactTable .-pagination .-btn {
height: auto;
} I have this in my CSS and I imported this CSS into my class

Was this page helpful?
0 / 5 - 0 ratings

Related issues

krishna-shenll picture krishna-shenll  路  3Comments

monarajhans picture monarajhans  路  3Comments

pasichnyk picture pasichnyk  路  3Comments

mellis481 picture mellis481  路  3Comments

panfiva picture panfiva  路  3Comments