-
Notifications
You must be signed in to change notification settings - Fork 85
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
LF-4738 Delete Task" Button Misalignment in Custom Task Screen #3694
base: integration
Are you sure you want to change the base?
LF-4738 Delete Task" Button Misalignment in Custom Task Screen #3694
Conversation
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.
Could you remove invisible div and buttons?
These changes affect other task types, so it would be best to focus on fixing just what’s broken.
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.
Hi @den4ik1203 thanks for working on this!
I think Sayaka is right you have added extra buttons, these should be removed.
At least for me I am seeing that the fix is not correct for custom tasks with no location specified it just moves closer than before:
Some things to think about:
- It seems like the map fills up available space and pushes the delete button down in most cases you can see this as i delete normal task inputs in video
- If we want to make sure the delete icon is with buttons, have you considered grouping the delete button with form buttons?
- there is a lot of css there - do you need them all? Ideally as little css as possible is added (I think your instinct is right about min-height and it should not be used):
Screen.Recording.2025-02-21.at.10.06.27.AM.mov
Hey @den4ik1203 it is looking closer to what I might expect! Two things:
In the code for the delete buttons the previous condition for rendering was:
In the previous code the condition for rendering the bottom buttons was:
The new code and condition for rendering delete button is: It might be okay but it is good to double check if there are cases where it is not rendering when it should because of extra conditions. |
Description
This update fixes a bug that was causing [briefly describe the issue, e.g., "the delete button to be misaligned in the footer section"].
Changes Made:
Adjusted the CSS layout to properly align the delete button to the left.
Updated the flexbox properties in .footerContainer to ensure correct spacing.
Refactored the JSX structure for better readability and maintainability.
Reason for the Fix:
The delete button was not aligning as expected due to incorrect justify-content and margin rules. This fix ensures a consistent UI layout.
Jira link:
https://lite-farm.atlassian.net/browse/LF-4738
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist: