Closed fredguile closed 7 years ago
I unfortunately can't spend more time on this, so I have to restrict padding in 1.1.1 and let people override that in their own scss theme if they need to.
@fredguile the spec says for this case the table should be vertically scrolled. I can apply this if you like.
@fredguile https://github.com/fredguile/ng2-md-datatable/blob/afd12382c2edbb3432d4abe637a273ecd2ff83a6/src/md-datatable.component.scss#L1-L3 the fix actually has already been applied. It might be possible that you didn't limit the with of the table in your example above.
I'll leave it with this compromise for now...
My bad, I realise that using "display: table", "display: table-header-group", (and so on.. wasn't so efficient for making a responsive table with dynamic padding.
Switching to a flex layout with gutters calculated with the CSS calc() would probably work better, but it would take time to refactor this.
Picture explanation:
To let you know @TitanNano, I need to sort this out and change these paddings for a proper flexbox with gutter strategy...