Skip to content
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

[BUG] Fix Content Overflow and Misalignment in Waste Management Section #165

Closed
4 tasks done
sahhoArjun097 opened this issue Oct 5, 2024 · 0 comments · Fixed by #241
Closed
4 tasks done

[BUG] Fix Content Overflow and Misalignment in Waste Management Section #165

sahhoArjun097 opened this issue Oct 5, 2024 · 0 comments · Fixed by #241

Comments

@sahhoArjun097
Copy link
Contributor

Description

The "Waste Management" section has an overflow issue where content extends beyond the designated layout boundaries, making the text appear misaligned and causing parts of it to be cut off. This is particularly noticeable in the section where the red text ("9% of plastic ever produced has been recycled?") overlaps with other content, creating readability and design problems.

Screenshot 2024-10-06 005329

Steps to Reproduce

Fix the overflow by ensuring that all elements stay within their respective containers or div blocks.

Adjust margins and padding to provide adequate spacing between the text and other elements.

Implement responsive design to ensure the content scales properly on different screen sizes.

Improve font alignment to ensure all text remains clear and readable within the section.

Expected Behavior

Proper Content Alignment: All text, images, and elements should stay within the designated sections without overflowing or overlapping. The layout should look neat and well-organized, with the text properly wrapped within its container.

Actual Behavior

Overflow Issue: The content (particularly the red text) extends beyond the layout's intended boundaries, making it difficult to read and giving the section a cluttered appearance.

Misalignment of Text: Some text is misaligned, causing it to appear outside its container, overlapping other elements, and breaking the visual flow of the design.

Lack of Padding and Margins: There is insufficient spacing between elements, which leads to a cramped and disorganized look.

Additional Information

Please assign this issue to me as I would like to work on fixing it. also add the label GSSoC 2024 Extd relaevant and lvl

Browser

Firefox

Checklist

  • I have checked the existing issues.
  • I have read the Code Of Conduct
  • The changes don't break the code
  • Please attach screenshots and videos of the development work once done
@sahhoArjun097 sahhoArjun097 added the bug Something isn't working label Oct 5, 2024
GarimaSingh0109 added a commit that referenced this issue Oct 9, 2024
…on (#241)

<!-- Thank you for sending a pull request ❤️ -->

[BUG] Fix Content Overflow and Misalignment in Waste Management Section

Closes: #165

The "Waste Management" section had issues with content overflowing and
misaligning, particularly on smaller screen sizes. This disrupted the
layout and negatively affected the user experience, causing some text
and elements to overflow outside their containers.

-Card Layout Adjustment: Updated the card structure to use flexbox for
better alignment and dynamic resizing.

-Text Overflow Handling: Applied CSS properties like overflow-wrap and
text-overflow to handle potential text overflow issues.

-Spacing & Padding: Adjusted margins and padding for better consistency
across cards and between elements.

-Mobile Optimization: Added media queries to ensure the layout is
responsive and readable on smaller screens, preventing
  any misalignment or overflow issues.


_Please check the boxes that apply_

- [x] Bugfix (non-breaking change that fixes an issue)
- [x] New feature (non-breaking change that adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] Documentation update (Documentation content changed)
- [ ] Other (please describe):

## Checklist

_Please check the boxes that apply_

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] My changes do not break the current system and pass all existing
test cases
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged and published in downstream
modules



https://github.com/user-attachments/assets/c7fcec2d-398b-4e1c-ac9d-18ae13005c27

Please assign this issue to me as I would like to work on fixing it.
also add the label GSSoC 2024 Extd relaevant and lvl .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants