-
Notifications
You must be signed in to change notification settings - Fork 40
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
Tabledrag hierarchy is broken in Basis #2689
Comments
I've tracked this down to one line in Basis
Commenting this out enables lateral-movement tabledrag again. But even though the rows move laterally, the tabledrag handle stays fixed to the left table edge because Basis also has a So in summary, two things to fix this: the box-sizing, and the drag-handle positioning. I am not sure what those fixes should be. Tagging @wesruv. |
I agree with your conclusions here @docwilmot My CSS foo is not strong enough for this. @wesruv is there someway we can scope those kinds of rules from |
What would be the desired result here, what should this look like? Proper indentation, for sure, but what else? A quick mockup could help. |
Here's a PR as a starting point for further discussion. I expect this issue to be a tricky one, as fixing the hierarchy handling might need deeper changes - potentially problematic ones regarding existing subthemes out there. |
Seen; I made a term list at http://3572.backdrop.backdrop.qa.backdropcms.org/admin/structure/taxonomy/draggable for testing.
If it never worked, I think we should fix it if we can. |
I agree, this is the main problem here. Moving the drag handler next to the items contradicts the design concept and might look awkward. ... And needs a lot of rewrite. |
I can take a look this week |
Made a PR backdrop/backdrop#3578 The CSS for tabledrag is gnarly, it could be so much simpler if the indentation divs were added before the tabledrag link, but that's not how it works 😭 I simplified the look, which is a little sad, but we'd need much better JS/DOM order for me to have fancy styles like I did. |
@wesruv Thank you so much for digging into this. 👍 Two minor issues:
Otherwise it's looking good. Yes, it's a bit sad that the fancy style had to be dropped in favor of proper hierarchy display... |
Sad, but necessary. In the previous design we seem to have overlooked the use case of hierarchical tabledrag 🤷🏼 |
After years without additional feedback and because CSS changes are known to be hard, I'm closing my PR. No need for another PR queue zombie. 😆 |
Steps to reproduce
The text was updated successfully, but these errors were encountered: