Honglin fix wbs button align issue #3096
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR fixes the layout issue of the button group in the WBS tasks view. Previously, the buttons were rendered evenly across the top of the page. This fix aligns the buttons in a row on the left, improving the layout.
![image](https://private-user-images.githubusercontent.com/109174489/407963793-99cc3956-cd5b-4563-813f-d91206bda11c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxOTk4MDMsIm5iZiI6MTczOTE5OTUwMywicGF0aCI6Ii8xMDkxNzQ0ODkvNDA3OTYzNzkzLTk5Y2MzOTU2LWNkNWItNDU2My04MTNmLWQ5MTIwNmJkYTExYy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMFQxNDU4MjNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT00MmRkMTEyZDdhODg5ZWY4Y2Q1MjUwMjdmMzZlNGVkZmQ1NzVkODFhYmMwZGUwMTMxODcyMDRmMzUxNGI0MjQ0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.WNIR0H5pOJ202EbpjTfaj9ddRjDEoYwLDzfONdzAJhs)
Related PRS:
This fix addresses an unintended side effect introduced by PR #2714, which added a .button-group CSS class that overrode the media query originally created in PR #2795 for larger screens.
Main changes explained:
Updated WBSTasks.jsx:
Updated wbs.css:
How to test:
npm install
and...
to run this PR locallyScreenshots or videos of changes:
Before:
![image](https://private-user-images.githubusercontent.com/109174489/407966110-645e0067-a368-4d46-9b29-30c7f9d605b3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxOTk4MDMsIm5iZiI6MTczOTE5OTUwMywicGF0aCI6Ii8xMDkxNzQ0ODkvNDA3OTY2MTEwLTY0NWUwMDY3LWEzNjgtNGQ0Ni05YjI5LTMwYzdmOWQ2MDViMy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMFQxNDU4MjNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT05ZTk3MDM5OGVkYTY4ZWYzNmVjZmJhN2M3NmI5ODc3NDljZTM0YmFiNmJlN2UxODg4ZTM1ZWMzNDI0MTk1ZTBlJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.Nu4goY7gl8nKDWurGihrOtxxv2YNYe5-9i_QiUZr0XU)
After:
![image](https://private-user-images.githubusercontent.com/109174489/407964841-a83ad4d0-dc3f-49ea-9097-9cf717e0f40b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3Mi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