-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Table CSS Improvements #12047
Comments
@cagataycivici @cetincakiroglu test of v14.2.2 from developer that uses p-table: How's that all of suddenly on individual (single column) and dynamic columns (generated dyncamically *ngFor let variable in template) setting any widths (either width, or max-width, ...) doesn't work properly as it did on v14.0.2 and before? My table is trying to auto-fit columns by comparing text content probably. It ignores set up widths on either individual or either dynamic columns. Why setting styles for width attributes or css class with width attributes doesn't work properly anymore, it gets set , as I can see on Inspector tab, but in the layout it's totally different situation.
or
Table properties: Thanks in advance. Any feedback would be helpful. Kind regards, |
b3e7b35#diff-54f9fcc81f3c7d880cfe5f7ddd5dda1e60f15581a7ce88dd922b0586b1f259a1L2012 In the link above, flex attributes have been removed from the columns, and that after v14.2.2 update columns and don't work properly.
After manually putting this code and setting manually style |
Fully agree with @eXpertise7. I also added this piece of code and my scrollable tables work normally again. Before this scroll in tables did't work. @cagataycivici look at this again |
@eXpertise7 THANK YOU! I realized my column widths were screwed up and ended up on this issue to try and see what I would need to change / fix and your snipper solved the problem nicely. One thing I did add (since I use footers) was this: .p-datatable-tfoot {
display: block;
tr {
display: flex;
flex-wrap: nowrap;
width: 100%;
}
td {
display: flex;
flex: 1 1 0;
align-items: center;
}
} |
I tracked an issue after update to this commit. |
Describe the bug
While on it, we should also make css more strict e.g.
should be;
.p-datatable-table {}
Otherwise nested tables get effected.
Breaking changes are;
Environment
PrimeNG 14.2.0
Reproducer
No response
Angular version
14
PrimeNG version
14
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
all
Browser(s)
all
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: