-
-
Notifications
You must be signed in to change notification settings - Fork 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
feat(VDataTable): add mobile view #19431
feat(VDataTable): add mobile view #19431
Conversation
Rebase to |
3f6a19c
to
69273b8
Compare
* fix cell height when cell has longer content * add missing styles to mobile data-table-select row * add mobile column gap between title/value
* fix cell height when cell has longer content * add missing styles to mobile data-table-select row * add mobile column gap between title/value
I fixed the alignment to be |
Does anyone know how can I overwrite the default 52px row height on mobile? Because the content overflows. I tried to check in the documentation, but couldn't find something. |
I think you will have to override the CSS for mobile in this instance. Something like this... tbody .v-data-table__tr--mobile > td { Assuming this is a slot that adds buttons. You may want to evaluate if mobile breakpoint has been hit and turn the buttons into icon only to shrink down the content if it provides a better mobile experience as well. @webdevnerdstuff Any other way to handle this issue? I am not sure if it would be a feature... |
Thanks for your reply. I already added a CSS rule: .v-data-table__row-height-auto :deep(.v-data-table__tr--mobile) > td {
height: fit-content;
} I was curious if there's something else available from config. I checked the PR, but I found nothing related. So I hoped there was something. |
@cjhudson101 I'm pretty sure I had accounted for adjustable height depending on the content. Added a PR to fix it: #19843 |
@boobo94 The change was included in this morning's 3.6.7 release. |
Soo cool. thanks!
|
Description
Adds a mobile view for the data tables
Ref Issue: #16784
Markup: