-
-
Notifications
You must be signed in to change notification settings - Fork 7k
[Bug Report][3.8.4] v-treeview: Deep Nesting Leads to Rendering/Hover Problems #21387
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
Comments
I don't see any problems. Are you aware, that your data looks like: 18, 19, 22 ?
|
When you shrink the preview window down to a sufficiently small size, you might spot that; and these data is just some quick examples I threw in😄😄 |
Same with Indogermane, I didn't saw any issues I also tried resizing the window of the preview on you reproduction playground. Would you be able to provide us a video or image of what you are encountering so we could understand it better? |
Please try: .v-list-item__content {
min-width: max-content;
} |
Thank you for the advice, i tried this but it still seems to be the same, did i miss something? |
No, it's OK. I have missed the hover effect issue. :deep(.v-list-group__items),
:deep(.v-list-item__content) {
width: max-content;
} Also, it seems regular |
Thanks a lot @J-Sek , this works fine for me; And thanks for correcting me about |
I am exploring the possibility to include it somehow in the framework. It needs to be behind some prop. Cannot be the default (demo). |
maybe expose some prop that can set fixed width for list items? |
Switched to .v-list-group__items {
min-width: min-content;
}
.v-list-item__content {
min-width: 40px;
} This way the component keeps truncating but does not hide the content completely. No additional prop necessary. |
This does help, thanks again for tracking this issue @J-Sek |
Environment
Vuetify Version: 3.8.4
Vue Version: 3.5.9
Browsers: Chrome 136.0.0.0
OS: Windows, iOS, Android, Mac OSX
Steps to reproduce
I’m encountering an issue with
v-treeview
when rendering deeply nested trees (10+ levels deep). When the tree exceeds the viewport height, two problems occur:Rendering glitches: Nodes in deeper levels become progressively distorted (squished, overlapping) and eventually disappear entirely at the bottom. This suggests the component may not be correctly handling scrollable container boundaries or layout recalculations.
Hover misalignment: The hover background effect appears offset from the actual node when scrolling. The hover state seems to ignore scroll offsets, making it difficult to interact with nodes at lower levels.
The above content was translated. I hope the expression is accurate.
Expected Behavior
work normally
Actual Behavior
work unnormally
Reproduction Link
https://play.vuetifyjs.com/#...
The text was updated successfully, but these errors were encountered: