-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
After moving a task, the three-dots menu appears behind other tasks #11831 #11858
Conversation
Hi @joefessenden , this is working well but I think a part of the original bug is not completely solved. If you swap the position of two tasks (in the screenshot the |
@paglias ok. I see it. Let me have another look. |
I will give this a look 👍 |
@terminalstderr Thanks! I've marked issue #11831 as in progress for you. If you have any questions or run into trouble, drop a comment into the issue. |
I got through setting up a local dev environment, and have read much of the blacksmith documentation now 😁👍 I haven't figured out how to actually 'log in' to my local dev environment yet... I'd appreciate a tip/pointer here! |
@terminalstderr Have a look at the Setting up Habitica Locally page for your operating system. The sections from "Start the Habitica Web Server" onwards are probably the most important sections for you now, and jump down to "Test the Website in your Browser" if the site already seems to be working correctly. That should give you all the information you need about using the site and logging in, but if it doesn't help, please post again here! If any of it is unclear or doesn't work, tell us which parts so we can improve it. (BTW, if you run into any other issues, the rest of that page might help too - check that you've done everything described there.) |
For some reason, I thought I needed to set up an account from the backend (e.g. via Mongo or via the API). Now I realize that I can just setup an account from the GUI using the 'sign up' button. 🤦♂️ My misunderstanding did give me a nice chance to dip my toes into MongoDB, and I'm excited to help out on backend issues going forward 😁 |
@terminalstderr great investigation! I haven't looked at the code exactly but I'm thinking that the z-index of the 3-dots menu is linked to the task it belongs to, probably because it's a children of the task element. I'm wondering if we could solve this by having |
@paglias, hmm, I'm unsure how I would use absolute positioning for the dropdown menus. We'd either have to:
|
Sorry @joefessenden , I meant |
I'm going to see if I can pinpoint which element in the task is creating a new stacking context. The z-index will work if we can fix the stacking context debacle. Another Option
|
I would prefer to first try fixing the z-index, we can revisit other options if that doesn't work |
Thanks to the z-context Chrome plugin, it is simple to identify where in the DOM new stacking context(s) are being created. Sure enough, there is a stacking context created on the 'task-wrapper' div. I am struggling to figure where the relevant CSS is in the habitica code-base that is causing the attribute P.S. I think I saw one other stacking context to remove to implement the simplest solution. |
that |
Thanks @paglias! That makes so much sense. Time for me to start understanding Vue, Bootstrap, and BootstrapVue. |
This issue is going to fix itself 👏😁 The dropdown-menu will no longer appear behind the prior-dragged tasks when the 10.1.2 release of Sortable is integrated into Vue.Draggable!
Looks like my work here is done! 🙌🎉🍻 (the PR can be abandoned in my opinion) |
thanks for the investigation @terminalstderr ! The Vue.Draggable module (which uses SortableJS) specifies version |
I'm going to close the PR |
@terminalstderr Can you please tell us your Habitica User ID? We'll give you contributor credit for your investigation and for finding the fix. Knowing that we needed to update a library was valuable! |
My Habitica User ID is "rleonard". I really appreciate your being so on-top of issue-comments and pull-request-comments! Thanks @Alys! |
@terminalstderr Thanks! Welcome to the ranks of the Blacksmiths! :) For our reference, User ID is 6d3f823a-38aa-40d7-9cc3-a52ec7bda21f in case your Username ever changes. :) |
A thank-you message from @KGHN in RaB: "I want to thank whoever fixed the bug that's been bugging me. After a task had been moved up/down in the task list, its three-dots menu display of choices would hide behind other tasks below. I just found it correctly displaying and working, hooray! I have a non+/- "task" that I use as a divider. It starts at the top in the morning, and I move it down as I complete tasks so I can find my place easily in the long list. At the end of the day, "To top" is handy. Whoever fixed this has my gratitude!" |
Fixes #11831
Changes
Removed position entry from .task.
ce29fa61-66d8-45f8-9d9c-ea5ef876c35f
UUID: ce29fa61-66d8-45f8-9d9c-ea5ef876c35f