-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat(Table): add vertical alignment #91
base: main
Are you sure you want to change the base?
Conversation
Preview is ready. |
Also it might be a good idea to make verticalAlign: 'top' default? |
src/components/Table/Table.scss
Outdated
&_vertical-align { | ||
&_top { | ||
vertical-align: top; | ||
} | ||
|
||
&_center { | ||
vertical-align: middle; | ||
} | ||
|
||
&_bottom { | ||
vertical-align: bottom; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
vertical-align
won't help in case of enabled virtualization due to display: flex
style
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I was suspecting something might go wrong with virtualization, I'll look into it
This PR adds vertical alignment for table body rows just like in the uikit's table: https://preview.gravity-ui.com/uikit/?path=/story/components-data-display-table--default.
As for my investigation, horizontal alignment requires many wrappers for tanstack's types, so I suggest to implement it in another PR